Difference between revisions of "Offerit API Enable Affiliate Landing Page"
From Offerit
OfferitMegan (talk | contribs) (Created page with "This function allows you to get the details for an offer. The parameter that needs to be passes is: *'''landing_page''' - The id(s) of the landing page you want to get details f...") |
OfferitMegan (talk | contribs) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | This function allows you to | + | This function allows you to enable a landing page for an affiliate. The parameters that need to be passed in are: |
− | *'''landing_page''' - The | + | *'''affiliate''' - The affilate ID(s) of the affiliate you want to get details for. To pass more than one ID, enter the IDs as a comma separated list. 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. 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. If you wish to grab all offer IDs, you can leave the field blank. | ||
== 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( | ||
− | + | 'affiliate' => '1,2', | |
− | + | 'landing_page' => '', | |
+ | 'offer' => '1,2', | ||
+ | ); | ||
− | $result = $client->call(' | + | $result = $client->call('enable_affiliate_landing_page', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
=== Sample Output === | === 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.'; |
Latest revision as of 13:52, 10 February 2013
This function allows you to enable a landing page for an affiliate. The parameters that need to be passed in are:
- affiliate - The affilate ID(s) of the affiliate you want to get details for. To pass more than one ID, enter the IDs as a comma separated list. 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. 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. 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.';