Difference between revisions of "Offerit API Set Subaffiliate Status"
From Offerit
OfferitJames (talk | contribs) |
OfferitMegan (talk | contribs) |
||
| (5 intermediate revisions by 3 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' | ||
== NuSOAP Example == | == NuSOAP Example == | ||
| − | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]] | + | This example continues from the [[Offerit_API#Example|main article NuSOAP Example]]: |
<pre> | <pre> | ||
$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 14: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