High level API

It gives you objects that correspond to the entities, for example object for affiliate or commission. Using these objects you can easily retrieve, edit or add affiliates, commissions, or other objects of the affiliate system.

These high level objects are extended from and internally use the low level API objects to make the requests and process responses.

Example of using high level API (PHP code):

// getting list of affiliates
$request = new Pap_Api_AffiliatesGrid($session);
$request->addFilter("search", Gpf_Data_Filter::LIKE, "bbb");
$grid = $request->getGrid();
$recordset = $grid->getRecordset();

foreach($recordset as $rec) {
echo 'Affiliate name: '.$rec->get('firstname').' '.$rec->get('lastname').'<br>';
The first version of the API has support for the most common objects. We will be expanding the library of high level objects as necessary, or per our users requests.