API
There are two public methods available:
awSearchProducts() and awBrowseProducts():
/* Performs searches for keywords and merchants products and returns the
results */
awSearchProducts(affiliateID,affiliatePassword,startNum,limit,pathToScript,merchantID,categoryID,keywords,minprice,maxprice,orderby)
@param int - (affiliateID) Affiliate Id of the user - COMPULSORY
@param string - (affiliatePassword) Affiliate's password - COMPULSORY
@param int - (startNum) Start Number used for results that span multiple
screens (not normally changed by the user) - COMPULSORY
@param int - (limit) limit the number of results returned per screen. Valid
values between 1 and 200. Values higher than 200 will be limited to 200 -
COMPULSORY
@param string - (pathToScript) Specifies where the program displaying
results is, relative to the web document root eg, /index.php -
COMPULSORY
@param int - (merchantID) Id of the merchant whose results you would like to
restrict the search to OPTIONAL
@param int - (categoryID) ID of the category to search for results in -
OPTIONAL
@param string - (keywords) Keywords to search for - OPTIONAL
@param int - (minprice) Minimum price - OPTIONAL
@param int - (maxprice) Maximum price - OPTIONAL
@param string - (orderby) Order Results By - OPTIONAL
/*Browse a particular category or view the top level categories in the
dataset */
awBrowseProducts(affiliateID,affiliatePassword,startNum,limit,pathToScript,categoryID,orderby)
@param int - (affiliateID) Affiliate Id of the user - COMPULSORY
@param string - (affiliatePassword) Affiliate's password - COMPULSORY
@param int - (startNum) Start Number used for results that span multiple
screens (not normally changed by the user) - OPTIONAL
@param int - (limit) limit the number of results returned per screen. Valid
values between 1 and 200. Values higher than 200 will be limited to 200 -
COMPULSORY
@param string - (pathToScript) Specifies where the program displaying
results is, relative to the web document root eg, /index.php -
COMPULSORY
@param int - (categoryID) ID of the category to search for results in -
OPTIONAL - if no categoryID is present the top level categories will be
returned
@param string - (orderby) how to order listings (see config file for
allowable values) OPTIONAL
|