Difference between revisions of "Offerit API Set Subaffiliate Status"
From Offerit
OfferitJames (talk | contribs) |
OfferitMegan (talk | contribs) |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 5: | Line 5: | ||
*'''affid''' - (required) The ID of the affiliate. | *'''affid''' - (required) The ID of the affiliate. | ||
− | *''' | + | *'''subaff''' - (required) The id of the sub affiliate you want changed. |
*'''status''' - (required) Can pass in values 0 or 'pending', 1 or 'approved' or 'active', 2 or 'banned' | *'''status''' - (required) Can pass in values 0 or 'pending', 1 or 'approved' or 'active', 2 or 'banned' | ||
Line 15: | Line 15: | ||
$values = Array( | $values = Array( | ||
'affid' => 1, | 'affid' => 1, | ||
− | ' | + | 'subaff' => 1, |
'status' => 'active' | 'status' => 'active' | ||
); | ); | ||
− | $result = $client->call(' | + | $result = $client->call('set_subaff_status', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
Line 33: | Line 33: | ||
</pre> | </pre> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Latest revision as of 13:55, 1 February 2013
This function allows you to set the status for a specfic affiliate. To use this function, you must make a SOAP call with the following parameters:
- affid - (required) The ID of the affiliate.
- subaff - (required) The id of the sub affiliate you want changed.
- status - (required) Can pass in values 0 or 'pending', 1 or 'approved' or 'active', 2 or 'banned'
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'affid' => 1, 'subaff' => 1, 'status' => 'active' ); $result = $client->call('set_subaff_status', $values, 'offeritapiadmin_wsdl');
Sample Output
on success: Status: SUCCESS on failure: error message or Status: FAILURE