Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

API Reference

adslgeek edited this page Nov 30, 2011 · 6 revisions

The following page contains all methods which are accessable to build a query.

All accessable methods

  • search($pattern)

    • Performing a item - search - request
  • **lookup($asin) **

    • Performing a item - lookup - request
  • **associateTag($associateTag = null) ** NEEDS VERSION >= 1.0 fluent

    • Sets the associate id on the fly.
    • The associate tag also could be set within the constructor as the fourth parameter
  • optionalParameters ($params = null) fluent

    • Setting up optional parameters according to the Amazon standard. If it is null the function returns the current opt. parameters.
    • The parameter has to be an array following the schema: "ParameterName" => "ParameterValue"
    • Which parameters are possible see the Amazon API reference..
  • country($country = null) fluent

    • Setting up a country where the request goes. If it is null the function returns the current country value.
    • It could be: US, UK, DE, JP, FR or CA
  • category($category = null) fluent

    • Setting up a category e.g. DVD, MUSIC, BOOKS, ALL. If it is null the function returns the current category value.
    • For more information please see the Amazon API Reference.
  • responseGroup($responseGroup = null) fluent

    • Setting up Amazon Responsegroups for this request. If it is null the function returns the current responseGroup value.
    • It could be one or more Repsonsegroups (seperated by comma): (Examples) "Images" or: "Images,Reviews,ItemIds"
    • For more information please see the Amazon API Reference.
  • returnType($type = null) fluent

    • Setting up the returntyp. It could be 1 or 2. If it is null the function returns the current returnType value.
    • For easyer usage use the constants RETURN_TYPE_ARRAY or RETURN_TYPE_OBJECT

Back to index