Difference between revisions of "Offerit API Decode Offeritcode"
From Offerit
OfferitJames (talk | contribs) |
OfferitJames (talk | contribs) |
||
Line 16: | Line 16: | ||
$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> | ||
+ | |||
+ | <!-- | ||
+ | ==Request== | ||
+ | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:offeritapiadmin_wsdl"><SOAP-ENV:Body><tns:decode_offeritcode xmlns:tns="urn:offeritapiadmin_wsdl"><offeritcode xsi:type="xsd:string">MC4xLjEuMS4wLjAuMC4wLjAuMC4wLjA</offeritcode></tns:decode_offeritcode></SOAP-ENV:Body></SOAP-ENV:Envelope></pre> | ||
+ | |||
+ | ==Response== | ||
+ | <?xml version="1.0" encoding="ISO-8859-1"?><SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="urn:offeritapiadmin_wsdl"><SOAP-ENV:Body><ns1:decode_offeritcodeResponse xmlns:ns1="urn:offeritapiadmin_wsdl"><return xsi:type="tns:Natscode_data"><loginid xsi:type="xsd:int">0</loginid><programid xsi:type="xsd:int">1</programid><offerid xsi:type="xsd:int">1</offerid><landing_pageid xsi:type="xsd:int">1</landing_pageid><campaignid xsi:type="xsd:int">0</campaignid><adtoolid xsi:type="xsd:int">0</adtoolid><subid1 xsi:type="xsd:int">0</subid1><subid2 xsi:type="xsd:int">0</subid2><is_unencoded xsi:type="xsd:int">0</is_unencoded><old_code xsi:type="xsd:string">0</old_code></return></ns1:decode_offeritcodeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope></pre> | ||
+ | --> |
Revision as of 17:56, 17 May 2012
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 )