Requests can be sent using any programming language—you only need to follow the JSON format for requests and responses.
We provide a PHP object library (a single file: PapApi.class.php or PapApiNamespace.class.php) that simplifies making requests to the Post Affiliate Pro API and processing the responses. PapApi.class.php is included with every Post Affiliate Pro distribution and can be found in the api folder in your installation files, or you can download it from Merchant panel > Tools > Integration > API Integration. Always use the PapApi.class.php or PapApiNamespace.class.php from your current version of Post Affiliate Pro to ensure compatibility.
To use this class, you will need:
- PHP version 8.1 or higher
- Either the cURL extension or fsockopen enabled
The file has no external dependencies. If you want to use the API in another language (such as Java, C#, .NET, Ruby, or Python), it is generally possible, but we do not currently provide any library or classes for these languages.