Offerit API List Affiliate Subaffiliates
From Offerit
Revision as of 15:19, 6 May 2015 by OfferitJames (talk | contribs)
This function lists the sub affiliates under a specific affiliate. To use this function, you must make a SOAP call with the following parameters:
- loginid - The affiliate ID to get sub affiliates from
- start - (optional) The index to start on
- count - (optional) The amount of records to get (25 results will be returned by default)
- order - (optional) The order of the records
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'loginid' => 2, 'start' => 1, 'count' => 10, 'order' => 'subaff' ); $result = $client->call('list_aff_subaffs', $values, 'offeritapiadmin_wsdl');
Sample Output
Array ( [0] => Array ( [additional_trackingid] => 2 [subaff] => asdfsadf [subaff2] => asdf123423 [subaff3] => [subaff4] => [subaff5] => [loginid] => 2 ) [1] => Array ( [additional_trackingid] => 3 [subaff] => tester [subaff2] => hello [subaff3] => adam [subaff4] => [subaff5] => [loginid] => 2 ) [2] => Array ( [additional_trackingid] => 1 [subaff] => tmmadam [subaff2] => adamtest [subaff3] => [subaff4] => [subaff5] => [loginid] => 2 ) )