Difference between revisions of "NATS4 API Affiliate Get Campaigns"
From TMM Wiki
Jump to navigationJump to searchTMMStephenY2 (talk | contribs) |
|||
Line 3: | Line 3: | ||
}} | }} | ||
− | This function allows you to get a list of affiliate campaigns. To use this function, you must make a SOAP call with the following parameters | + | This [[NATS4_API|API]] function allows you to get a list of affiliate campaigns. To use this function, you must make a SOAP call with the following parameters: |
<pre> | <pre> | ||
Line 19: | Line 19: | ||
</pre> | </pre> | ||
− | + | The SOAP call should return a response similar to the following: | |
+ | |||
<pre> | <pre> | ||
<?xml version="1.0" encoding="ISO-8859-1"?> | <?xml version="1.0" encoding="ISO-8859-1"?> |
Revision as of 12:26, 29 June 2010
This API function allows you to get a list of affiliate campaigns. To use this function, you must make a SOAP call with the following parameters:
<?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:natsapiadmin_wsdl"> <SOAP-ENV:Body> <tns:aff_getcampaigns xmlns:tns="urn:natsapiadmin_wsdl"> <firstname xsi:type="xsd:string">MyFirst</firstname> <lastname xsi:type="xsd:string">MyLast</lastname> <loginid xsi:type="xsd:int">6</loginid> <campaignid xsi:type="xsd:int">0</campaignid> </tns:aff_getcampaigns> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
The SOAP call should return a response similar to the following:
<?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope 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:natsapiadmin_wsdl"> <SOAP-ENV:Body> <ns1:aff_getcampaignsResponse xmlns:ns1="urn:natsapiadmin_wsdl"> <return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:aff_getcampaigns[1]"> <item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:aff_getcampaigns[1]"> <item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:aff_getcampaigns[0]"> </item> </item> </return> </ns1:aff_getcampaignsResponse> </SOAP-ENV:Body> </SOAP-ENV:Envelope