Docs For Class Zend_Service_Amazon

## Class Zend_Service_Amazon

Description

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Service/Amazon.php (line 96)

Direct descendents

Class | Description
--- | ---
Zend_Service_Amazon_Query |

Variable Summary
static mixed $_searchParams
static mixed $_searchSort
static mixed $_sortVerbs
mixed $appId
mixed $_baseUri
mixed $_baseUriList
Zend_Service_Rest $_rest
Method Summary
static void _checkErrors ( $dom)
Zend_Service_Amazon __construct (string $appId, [string $countryCode = 'US'])
Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet|null itemLookup (string $asin, [array $options = null])
Zend_Service_Amazon_ResultSet itemSearch (array $options)
void _compareOptions (array $options, array $validOptions)
array _prepareOptions (string $query, array $options, array $defaultOptions)
void _validateInArray (string $name, string $value, array $array)
void _validateItemLookup ([array $options = array()])
void _validateItemSearch ([ $options = array()])
Variables
static mixed $_searchParams = array(
'Apparel' => array(
'Brand',
'BrowseNode',
'Condition',
'DeliveryMethod',
'ISPUPostalCode',
'ItemPage',
'Keywords',
'Manufacturer',
'MaximumPrice',
'MerchantId',
'MinimumPrice',
'Sort',
'TextStream',
'Title'),'Baby'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','Sort','Title'),'Beauty'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','Sort','Title'),'Blended'=>array('Keywords'),'Books'=>array('Author','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Power','Publisher','Sort','TextStream','Title'),'Classical'=>array('Artist','BrowseNode','Composer','Condition','Conductor','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MusicLabel','Orchestra','Sort','TextStream','Title'),'DVD'=>array('Actor','BrowseNode','Condition','DeliveryMethod','Director','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MPAARating','Publisher','Sort','TextStream','Title'),'DigitalMusic'=>array('Actor','BrowseNode','Condition','DeliveryMethod','Director','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MPAARating','Publisher','Sort','TextStream','Title'),'Electronics'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','Sort','TextStream','Title'),'GourmetFood'=>array('Actor','BrowseNode','Condition','DeliveryMethod','Director','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MPAARating','Publisher','Sort','TextStream','Title'),'HealthPersonalCare'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'Jewelry'=>array('Actor','BrowseNode','Condition','DeliveryMethod','Director','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MPAARating','Publisher','Sort','TextStream','Title'),'Kitchen'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'Magazines'=>array('BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Publisher','Sort','Title'),'Merchants'=>array('Keywords','Title','Power','BrowseNode','Artist','Author','Actor','Director','AudienceRating','Manufacturer','MusicLabel','Composer','Publisher','Brand','Conductor','Orchestra','TextStream','Cuisine','City','Neighborhood'),'Miscellaneous'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Sort','Title'),'Music'=>array('Artist','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MusicLabel','Sort','TextStream','Title'),'MusicTracks'=>array('Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Sort'),'MusicalInstruments'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'OfficeProducts'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'OutdoorLiving'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'PCHardware'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'PetSupplies'=>array('Keywords','Title','BrowseNode','Author','Manufacturer','Brand','Count','ItemPage','Sort','MinimumPrice','MaximumPrice','MerchantId','Condition','DeliveryMethod'),'Photo'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','TextStream','Title'),'Restaurants'=>array('BrowseNode','City','Condition','Cuisine','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Neighborhood','Sort','Title'),'Software'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','ItemPage','Keywords','Sort','Title'),'SportingGoods'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','Sort','Title'),'Tools'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','Sort','Title'),'Toys'=>array('BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Sort','TextStream','Title'),'VHS'=>array('Actor','BrowseNode','Condition','DeliveryMethod','Director','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MPAARating','Publisher','Sort','Title'),'Video'=>array('Actor','BrowseNode','Condition','DeliveryMethod','Director','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','MPAARating','Publisher','Sort','TextStream','Title'),'VideoGames'=>array('Brand','BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','Manufacturer','MaximumPrice','MerchantId','MinimumPrice','Sort','TextStream','Title'),'Wireless'=>array('BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Sort','Title'),'WirelessAccessories'=>array('BrowseNode','Condition','DeliveryMethod','ISPUPostalCode','ItemPage','Keywords','MaximumPrice','MerchantId','MinimumPrice','Sort','Title')) (line 341)

- access: protected

static mixed $_searchSort = array(
'Apparel' => array(
'relevance' => 'relevancerank',
'salesrank' => 'salesrank',
'price' => 'pricerank',
'-price' => 'inverseprice',
'most-recent' => '-launch-date',
'sale-flag' => 'sale-flag'),'Baby'=>array('featured'=>'psrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank'),'Beauty'=>array('featured'=>'pmrank','sales'=>'salesrank','price'=>'price','-price'=>'-price','most-recent'=>'-launchdate','sale-flag'=>'sale-flag'),'Blended'=>array(),'Books'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','review'=>'reviewrank','price'=>'pricerank','-price'=>'inverse-pricerank','most-recent'=>'daterank','title'=>'titlerank','-title'=>'-titlerank'),'Classical'=>array('featured'=>'psrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank','most-recent'=>'orig-rel-date'),'DigitalMusic'=>array('title'=>'songtitlerank','most-recent'=>'uploaddaterank'),'DVD'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','most-recent'=>'-video-release-date'),'Electronics'=>array('featured'=>'pmrank','salesrank'=>'salesrank','review'=>'reviewrank','price'=>'price','-price'=>'-price','title'=>'titlerank'),'ForeignBooks'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','review'=>'reviewrank','price'=>'pricerank','-price'=>'inverse-pricerank','most-recent'=>'daterank','title'=>'titlerank','-title'=>'-titlerank'),'GourmetFood'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'pricerank','-price'=>'inverseprice','most-recent'=>'launch-date','sale-flag'=>'sale-flag'),'HealthPersonalCare'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'pricerank','-price'=>'inverseprice','most-recent'=>'launch-date','sale-flag'=>'sale-flag'),'HomeGarden'=>array(),'Jewelry'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'pricerank','-price'=>'inverseprice','most-recent'=>'launch-date'),'Kitchen'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank'),'Magazines'=>array('salesrank'=>'subslot-salesrank','review'=>'reviewrank','price'=>'price','-price'=>'-price','most-recent'=>'daterank','title'=>'titlerank','-title'=>'-titlerank'),'Merchants'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'pricerank','-price'=>'inverseprice','most-recent'=>'-launch-date','sale-flag'=>'sale-flag'),'Miscellaneous'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank'),'Music'=>array('featured'=>'psrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank','artist'=>'artistrank','most-recent'=>'orig-rel-date'),'MusicalInstruments'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','most-recent'=>'-launch-date','sale-flag'=>'sale-flag'),'MusicTracks'=>array('title'=>'titlerank','-title'=>'-titlerank'),'OfficeProducts'=>array('featured'=>'pmrank','salesrank'=>'salesrank','review'=>'reviewrank','price'=>'price','-price'=>'-price','title'=>'titlerank'),'OutdoorLiving'=>array('featured'=>'psrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank'),'PCHardware'=>array('featured'=>'psrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank'),'PetSupplies'=>array('featured'=>'+pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank'),'Photo'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank'),'Restaurants'=>array('relevance'=>'relevance','title'=>'titlerank'),'Software'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank'),'SoftwareVideoGames'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank'),'SportingGoods'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'pricerank','-price'=>'inverseprice','most-recent'=>'launch-date','sale-flag'=>'sale-flag'),'Tools'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-title'=>'-titlerank'),'Toys'=>array('featured'=>'pmrank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','-age-min'=>'-age-min'),'VHS'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','most-recent'=>'-video-release-date'),'Video'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','most-recent'=>'-video-release-date'),'VideoGames'=>array('relevance'=>'relevancerank','salesrank'=>'salesrank','price'=>'price','-price'=>'-price','title'=>'titlerank','most-recent'=>'-video-release-date'),'Wireless'=>array('featured'=>'psrank','salesrank'=>'salesrank','title'=>'titlerank','-title'=>'-titlerank'),'WirelessAccessories'=>array('featured'=>'psrank','salesrank'=>'salesrank','title'=>'titlerank','-title'=>'-titlerank')) (line 105)

- access: protected

static mixed $_sortVerbs = array('relevance', 'salesrank', 'price', '-price',
'most-recent', '-date', 'title', '-title',
'sale-flag', 'featured', 'review', 'artist',
'age-min', '-age-min') (line 100)

- access: protected

mixed $appId (line 98)

- access: public

mixed $_baseUri = 'http://webservices.amazon.com' (line 831)

- access: protected

mixed $_baseUriList = array('US' => 'http://webservices.amazon.com',
'UK' => 'http://webservices.amazon.co.uk',
'DE' => 'http://webservices.amazon.de',
'JP' => 'http://webservices.amazon.co.jp',
'FR' => 'http://webservices.amazon.fr',
'CA' => 'http://webservices.amazon.ca') (line 833)

- access: protected

Zend_Service_Rest $_rest (line 845)

Zend_Service_Rest Object

- access: protected

Methods
static method _checkErrors (line 1172)

Check result for errors

- access: protected
- throws: Zend_Service_Exception

static void _checkErrors ( $dom)

- DomDocument $dom

Constructor __construct (line 856)

Constructs a new Amazon Web Services Client

- access: public
- throws: Zend_Service_Exception

Zend_Service_Amazon __construct (string $appId, [string $countryCode = 'US'])

- string $appId: Developer's Amazon appid
- string $countryCode: Country code for Amazon service to connect to. Defaults to US, can be US, UK, DE, JP, FR, CA

itemLookup (line 907)

Look up for a Single Item

- access: public
- throws: Zend_Service_Exception
- see: http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemLookupOperation

Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet|null itemLookup (string $asin, [array $options = null])

- string $asin: Amazon ASIN ID
- array $options: Query Options

itemSearch (line 878)

Search for Items

- access: public
- throws: Zend_Service_Exception
- see: http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation

Zend_Service_Amazon_ResultSet itemSearch (array $options)

- array $options: Options to use for the Search Query

_compareOptions (line 1140)

Check that all options are valid

- access: protected
- throws: Zend_Service_Exception

void _compareOptions (array $options, array $validOptions)

- array $options: User supplied options
- array $validOptions: Valid options

_prepareOptions (line 1108)

Prepare options for request

- access: protected

array _prepareOptions (string $query, array $options, array $defaultOptions)

- string $query: Action to perform
- array $options: User supplied options
- array $defaultOptions: Default options

_validateInArray (line 1158)

Validate that an option is in a given array

- access: protected
- throws: Zend_Service_Exception

void _validateInArray (string $name, string $value, array $array)

- string $name: Option Name
- string $value: Option value
- array $array: Array in which to check for the option

_validateItemLookup (line 1039)

Validate options for an ItemLookup

- access: protected
- throws: Zend_Service_Exception

void _validateItemLookup ([array $options = array()])

- array $options: Options array to be used for the query

_validateItemSearch (line 942)

- access: protected
- todo: docblock

void _validateItemSearch ([ $options = array()])

- $options

Documentation generated on Sun, 29 Oct 2006 21:26:59 -0600 by phpDocumentor 1.3.0RC6