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...