Difference between revisions of "Offerit API Decode Offeritcode"
From Offerit
OfferitJames (talk | contribs) |
OfferitMegan (talk | contribs) |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 8: | Line 8: | ||
== 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( | ||
| − | 'offeritcode' => MC4xLjEuMS4wLjAuMC4wLjAuMC4wLjA | + | 'offeritcode' => 'MC4xLjEuMS4wLjAuMC4wLjAuMC4wLjA' |
); | ); | ||
$result = $client->call('decode_offeritcode', $values, 'offeritapiadmin_wsdl'); | $result = $client->call('decode_offeritcode', $values, 'offeritapiadmin_wsdl'); | ||
| − | + | print_r($result); | |
</pre> | </pre> | ||
Output: | Output: | ||
<pre> | <pre> | ||
| − | + | Array | |
| − | + | ( | |
| − | + | [loginid] => 0 | |
| − | + | [payoutid] => 1 | |
| − | + | [offerid] => 1 | |
| − | + | [landing_pageid] => 1 | |
| − | + | [campaignid] => 0 | |
| − | + | [adtoolid] => 0 | |
| − | + | [subid1] => 0 | |
| − | + | [subid2] => 0 | |
| − | + | [is_unencoded] => 0 | |
| − | + | [old_code] => 0 | |
| − | + | ) | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</pre> | </pre> | ||
Latest revision as of 14:58, 1 February 2013
In order to decode an Offerit code, you must first make a SOAP call with the following parameter:
- offeritcode The Offerit code you want to be decoded
NuSOAP Example
This example continues from the main article NuSOAP Example:
$values = Array(
'offeritcode' => 'MC4xLjEuMS4wLjAuMC4wLjAuMC4wLjA'
);
$result = $client->call('decode_offeritcode', $values, 'offeritapiadmin_wsdl');
print_r($result);
Output:
Array
(
[loginid] => 0
[payoutid] => 1
[offerid] => 1
[landing_pageid] => 1
[campaignid] => 0
[adtoolid] => 0
[subid1] => 0
[subid2] => 0
[is_unencoded] => 0
[old_code] => 0
)