Service/Amazon/Query.php
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Service
- Subpackage
- Amazon
- Version
- $Id: Query.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Service_Amazon_Query
- Parent(s)
- \Zend_Service_Amazon
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


string $_baseUri = null
null
Details- Type
- string
- Inherited_from
- \Zend_Service_Amazon::$$_baseUri


array $_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')
List of Amazon Web Service base URLs, indexed by country code
Inherited from: \Zend_Service_Amazon::$$_baseUriListarray('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')
Details- Type
- array
- Inherited_from
- \Zend_Service_Amazon::$$_baseUriList


\Zend_Rest_Client $_rest = null
null
Details- Type
- \Zend_Rest_Client
- Inherited_from
- \Zend_Service_Amazon::$$_rest


string $_secretKey = null
null
Details- Type
- string
- Inherited_from
- \Zend_Service_Amazon::$$_secretKey
Methods


__call(string $method, array $args) : \Zend_Service_Amazon_Query
Prepares query parameters
Name | Type | Description |
---|---|---|
$method | string | |
$args | array |
Type | Description |
---|---|
\Zend_Service_Amazon_Query | Provides a fluent interface |
Exception | Description |
---|---|
\Zend_Service_Exception |


__construct(string $appId, string $countryCode = 'US', $secretKey = null) : \Zend_Service_Amazon
Constructs a new Amazon Web Services Client
Inherited from: \Zend_Service_Amazon::__construct()Name | Type | Description |
---|---|---|
$appId | string | Developer's Amazon appid |
$countryCode | string | Country code for Amazon service; may be US, UK, DE, JP, FR, CA |
$secretKey |
Type | Description |
---|---|
\Zend_Service_Amazon |
Exception | Description |
---|---|
\Zend_Service_Exception |


_checkErrors(\DOMDocument $dom) : void
Name | Type | Description |
---|---|---|
$dom | \DOMDocument |
Exception | Description |
---|---|
\Zend_Service_Exception |


_prepareOptions(string $query, array $options, array $defaultOptions) : array
Name | Type | Description |
---|---|---|
$query | string | Action to perform |
$options | array | User supplied options |
$defaultOptions | array | Default options |
Type | Description |
---|---|
array |


buildRawSignature(string $baseUri, array $options) : string
Build the Raw Signature Text
Inherited from: \Zend_Service_Amazon::buildRawSignature()Name | Type | Description |
---|---|---|
$baseUri | string | |
$options | array |
Type | Description |
---|---|
string |


computeSignature(string $baseUri, string $secretKey, array $options) : string
Compute Signature for Authentication with Amazon Product Advertising Webservices
Inherited from: \Zend_Service_Amazon::computeSignature()Name | Type | Description |
---|---|---|
$baseUri | string | |
$secretKey | string | |
$options | array |
Type | Description |
---|---|
string |


getRestClient() : \Zend_Rest_Client
Returns a reference to the REST client
Inherited from: \Zend_Service_Amazon::getRestClient()Type | Description |
---|---|
\Zend_Rest_Client |


itemLookup(string $asin, array $options = array()) : \Zend_Service_Amazon_Item | \Zend_Service_Amazon_ResultSet
Name | Type | Description |
---|---|---|
$asin | string | Amazon ASIN ID |
$options | array | Query Options |
Type | Description |
---|---|
\Zend_Service_Amazon_Item | \Zend_Service_Amazon_ResultSet |
Exception | Description |
---|---|
\Zend_Service_Exception |
- See
- \global\http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2011-08-01&p=ApiReference/ItemLookupOperation


itemSearch(array $options) : \Zend_Service_Amazon_ResultSet
Name | Type | Description |
---|---|---|
$options | array | Options to use for the Search Query |
Type | Description |
---|---|
\Zend_Service_Amazon_ResultSet |
Exception | Description |
---|---|
\Zend_Service_Exception |
- See
- \global\http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2011-08-01&p=ApiReference/ItemSearchOperation


search() : \Zend_Service_Amazon_Item | \Zend_Service_Amazon_ResultSet
Search using the prepared query
Type | Description |
---|---|
\Zend_Service_Amazon_Item | \Zend_Service_Amazon_ResultSet |


setRestClient( $client) : \Zend_Service_Amazon
Name | Type | Description |
---|---|---|
$client | Zend_Rest_Client |
Type | Description |
---|---|
\Zend_Service_Amazon |