Offerit API Decode Offeritcode
From Offerit
Revision as of 14:02, 17 May 2012 by OfferitJames (talk | contribs)
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'); vardump($result);
Output:
array(11) { ["loginid"]=> int(1) ["username"]=> string(13) "fdsnuph3fmaw4" ["programid"]=> int(1) ["offerid"]=> int(1) ["landing_pageid"]=> int(1) ["campaignid"]=> int(0) ["adtoolid"]=> int(10) ["subid1"]=> int(0) ["subid2"]=> int(0) ["promotionalid" => int(0) ["additional_trackingid"] => int(0) ["is_unencoded"]=> int(0) ["networkid"] => int(0) ["old_code"]=> string(1) "0" ["inhouse"] => int(1) ["affsubid"] => int(0) ["affsource"] => int(0) }