Revision: 40066
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at January 25, 2011 21:52 by jurajsim
Initial Code
/ init session for PAP $session = new Gpf_Api_Session("URL_TO_PAP/scripts/server.php"); // register click $clickTracker = new Pap_Api_ClickTracker($session); try { $clickTracker->track(); $clickTracker->saveCookies(); } catch (Exception $e) { } if ($clickTracker->getAffiliate() != null) { echo $clickTracker->getAffiliate()->getValue('userid'); // prints affiliate userid echo $clickTracker->getAffiliate()->getValue('refid'); // prints affiliate refid } if ($clickTracker->getCampaign() != null) { echo $clickTracker->getCampaign()->getValue('campaignid'); // prints campaign id }
Initial URL
Initial Description
track click and get aff/campaign info
Initial Title
pap click tracking api
Initial Tags
api
Initial Language
PHP