Difference between revisions of "Offerit API Record Affiliate Click"
From Offerit
OfferitJames (talk | contribs) |
OfferitMegan (talk | contribs) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 11: | Line 11: | ||
* '''is_unique''' - (optional) Flag to determine if you want a unique click or not. Defaults to 1 | * '''is_unique''' - (optional) Flag to determine if you want a unique click or not. Defaults to 1 | ||
* '''lang''' - (optional) The language to use, default is EN | * '''lang''' - (optional) The language to use, default is EN | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== 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> | ||
Line 49: | Line 25: | ||
'lang' => "EN" | 'lang' => "EN" | ||
); | ); | ||
− | $result = $client->call('record_affiliate_click', | + | $result = $client->call('record_affiliate_click', $values, 'offeritapiadmin_wsdl'); |
</pre> | </pre> | ||
− | == Sample Output == | + | === Sample Output === |
<pre> | <pre> | ||
Line 61: | Line 37: | ||
ERROR: error message | ERROR: error message | ||
</pre> | </pre> | ||
− | |||
− |
Latest revision as of 13:55, 1 February 2013
This function allows you to record a click for a specific affiliate. To use this function, you must make a SOAP call with the following parameters:
- loginid - The affiliate ID to record the click to
- payoutid - The payout ID you want to use
- offerid - The ID of the offer to record
- landing_pageid - (optional) The ID of the landing page to use, set to false to use the default landing page for the offer
- is_unique - (optional) Flag to determine if you want a unique click or not. Defaults to 1
- lang - (optional) The language to use, default is EN
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array( 'loginid' => 2, 'payoutid' => 2, 'offerid' => 1, 'landing_pageid' => 1, 'is_unique' => 1, 'lang' => "EN" ); $result = $client->call('record_affiliate_click', $values, 'offeritapiadmin_wsdl');
Sample Output
on success: SUCCESS on error: ERROR: error message