GetCategory

From Wiki

(Difference between revisions)
Jump to: navigation, search
George.Fletcher (Talk | contribs)
Line 1: Line 1:
=== This is my page... go away! :-D ===
=== This is my page... go away! :-D ===
 +
=== HIJACKED !!!!!!!!!!!!!!!!!!! ===
This ProductServe function will return a predefined number of category objects. If no category id's are passed then no category objects will be returned.
This ProductServe function will return a predefined number of category objects. If no category id's are passed then no category objects will be returned.

Revision as of 15:57, 14 November 2008

This is my page... go away! :-D

HIJACKED !!!!!!!!!!!!!!!!!!!

This ProductServe function will return a predefined number of category objects. If no category id's are passed then no category objects will be returned.

Parameters

Required Name Type Description Min Occurs Max Occurs
Yes iCategoryId int The ids of the categories to get from ProductServe 1 Unlimited


Response Parameters

Name Type Description Min Occurs Max Occurs
oCategory Category Objects of type Category. 0 Unlimited


Expected Request XML Example

<?xml version="1.0" encoding="UTF-8"?><br />
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.productserve.com/"><br />
<SOAP-ENV:Header><br />
<ns1:UserAuthentication SOAP-ENV:mustUnderstand="1" SOAP-ENV:actor="http://api.productserve.com/"><br />
<iId>Affiliate_Id</iId><br />
<sPassword>Password</sPassword><br />
<sType>affiliate</sType><br />
</ns1:UserAuthentication><br />
<ns1:getQuota SOAP-ENV:mustUnderstand="1" SOAP-ENV:actor="http://api.productserve.com/">true</ns1:getQuota><br />
</SOAP-ENV:Header><br />
<SOAP-ENV:Body><br />
<ns1:getCategory><br />
<iCategoryId>168</iCategoryId><br />
<iCategoryId>4</iCategoryId><br />
</ns1:getCategory><br />
</SOAP-ENV:Body><br />
</SOAP-ENV:Envelope>


Expected Response XML Example <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.productserve.com/"> <SOAP-ENV:Header> <ns1:getQuotaResponse>247723</ns1:getQuotaResponse> </SOAP-ENV:Header> <SOAP-ENV:Body> <ns1:getCategoryResponse> <oCategory> <iId>168</iId> <sName>Bras</sName>

<iParentId>135</iParentId> <sDescription>Bras</sDescription> <bAdult>true</bAdult> </oCategory> <oCategory> <iId>4</iId> <sName>Electronics</sName> <sDescription>Electronics</sDescription> <bAdult>false</bAdult> </oCategory>

       </ns1:getCategoryResponse>
   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Privacy

Due to new European legislation regarding how websites store information about you, AWIN is updating its privacy policy. You can see the new version of our policy here. If you would like to see the information we capture on this website, please click here for further details. In order to accept cookies on this site please click the 'I ACCEPT' button