Difference between revisions of "Offerit API List Affiliate Subaffiliates"
From Offerit
OfferitRob (talk | contribs) |
OfferitJames (talk | contribs) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
* '''loginid''' - The affiliate ID to get sub affiliates from | * '''loginid''' - The affiliate ID to get sub affiliates from | ||
* '''start''' - (optional) The index to start on | * '''start''' - (optional) The index to start on | ||
− | * '''count''' - (optional) The amount of records to get | + | * '''count''' - (optional) The amount of records to get ''(25 results will be returned by default)'' |
* '''order''' - (optional) The order of the records | * '''order''' - (optional) The order of the records | ||
Line 19: | Line 19: | ||
'start' => 1, | 'start' => 1, | ||
'count' => 10, | 'count' => 10, | ||
− | 'order' => ' | + | 'order' => 'subaff' |
); | ); | ||
$result = $client->call('list_aff_subaffs', $values, 'offeritapiadmin_wsdl'); | $result = $client->call('list_aff_subaffs', $values, 'offeritapiadmin_wsdl'); | ||
Line 63: | Line 63: | ||
) | ) | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> |
Latest revision as of 15:19, 6 May 2015
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 ) )