Difference between revisions of "Offerit API Set Subaffiliate Status"
From Offerit
OfferitRob (talk | contribs) |
OfferitMegan (talk | contribs) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 19: | Line 19: | ||
); | ); | ||
− | $result = $client->call(' | + | $result = $client->call('set_subaff_status', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
Line 32: | Line 32: | ||
Status: FAILURE | Status: FAILURE | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</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