Offerit API Disable Affiliate Landing Page
From Offerit
Revision as of 15:07, 1 February 2013 by OfferitMegan (talk | contribs)
This function allows you to disable a landing page for an affiliate. The parameters that needs to be passed are:
- affiliate - The loginid(s) of the affiliate you want to get details for. To pass more than one id, enter the ids as a comma separated list. Also, if you wish to grab all affiliate ids, you can leave the field blank.
- landing_page - The id(s) of the landing page you want to get details for. To pass more than one id, enter the ids as a comma separated list. Also, if you wish to grab all landing page ids, you can leave the field blank.
- offer - The id(s) of the offer you want to get details for. To pass more than one id, enter the ids as a comma separated list. Also, if you wish to grab all offer ids, you can leave the field blank.
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'affiliate' => '1,2', 'landing_page' => '', 'offer' => '1,2', ); $result = $client->call('enable_affiliate_landing_page', $values, 'offeritapiadmin_wsdl');
Sample Output
Output can be any one of the following:
'ERROR - No affiliate IDs were passed in.';
"ERROR - Invalid affiliate ID: $affiliate.";
"ERROR - Invalid landing page ID: $landing_page.";
"ERROR - Invalid offer ID: $offer.";
'ERROR - No valid landing pages passed in.';
'SUCCESS.';