My tickets
 
Submit ticket
 
Login
 
Examples
Home
>
Post Affiliate Pro
>
Programmers documentation
>
API
>
Examples
Getting started example
We'll make a short example of making a simple request that will retrieve a list of affiliates. You will get more detailed documentation about the classes and methods in the documentation for each class. To start using the API, you have to include file PapApi.class.php into your PHP code. This file contains all the necessary classes. You can download the PapApi.class.php file from the merchant panel: Tools > Integration > API Integration > Download PAP API include 'PapApi....
How to Update API file
This example shows how to check version of API file and how to update it. In return command of first function write right url of your PAP. <?php //base url of your pap function getPapUrl() { return 'https://www.yoursite.com/affiliate/'; } //name of api file (with path if it is not in the same directory as this script) function getApiFilename() { return 'PapApi.class.php'; } function getVersionFromPap() { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, getPapUrl().'api/version.php'); c...
Integration related
Integration with Joomla 3
Integration with Joomla 2.5.X
Integration with Joomla 1.5.X and lower
and 2 more ...
Feature and plugin specific
Import lifetime relationships
How to create affiliate sale tracking code
How to approve affiliate sale tracking code
Work with banners
Add banner via API
Delete banners via API
Get (retrieve) banner codes via API (only for affiliates)
and 7 more ...
Work with campaigns
Add action commission to a campaign via API
How to get commissiontypeid for campaign and commissiontype
Add campaign through API
and 9 more ...
Work with commissions
How to get commission group id
Adding affiliate to commission group
Change status of a transaction
and 5 more ...
Work with reports
How to load statistics data
How to load channel stats for affiliate
Get the list of Raw Clicks
and 2 more ...
Work with users
Get the list of PAN Accounts via API
PAN: change merchant password via API
Approve affiliate with API
and 11 more ...
Other
How to load affiliate manager information
How to display dates in the correct timezone
Redirect visitor to affiliate's replicated page
and 4 more ...
Subcategories
Integration related
Feature and plugin specific
Work with banners
Work with campaigns
Work with commissions
Work with reports
Work with users
Other