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 ===
+
 
-
=== HIJACKED !!!!!!!!!!!!!!!!!!! ===
+
== getCategory ==
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.
'''Parameters'''
'''Parameters'''
-
{| class="wikitable" style="text-align:center; background:#DDFFBB; border: thin solid #88DD00; border"
+
{| style="background-color:#E9E8E9;" cellpadding="8" cellspacing="0" border="1"
-
|-valign="top"
+
! Required
! Required
! Name
! Name
Line 14: Line 13:
! Max Occurs
! Max Occurs
|-
|-
-
|style="color:#558833; font-weight:bold;" | Yes
+
|style="font-weight:bold;" | Yes
| iCategoryId
| iCategoryId
| int
| int
Line 24: Line 23:
'''Response Parameters'''
'''Response Parameters'''
-
{| class="wikitable" style="text-align:center; background:#DDFFBB; border: thin solid #88DD00; border"
+
{| style="background-color:#E9E8E9;" cellpadding="8" cellspacing="0" border="1"
-
|-valign="top"
+
 
!
!
! Name
! Name

Revision as of 17:19, 14 November 2008

getCategory

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
<?php
    echo "Hello World!";
?>

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