Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Service_Amazon

Zend_Service
|-Zend_Service_Amazon
|- class Zend_Service_Amazon
Defined in line 36 of file Service/Amazon.php.
CategoryZend
PackageZend_Service
SubpackageAmazon
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_baseUri
# $_baseUriList List of Amazon Web Service base URLs, indexed by country code
# $_rest Reference to REST client object
# $_secretKey
+ $appId Amazon Web Services Access Key ID
Static methods
# _checkErrors() Check result for errors
+ buildRawSignature() Build the Raw Signature Text
+ computeSignature() Compute Signature for Authentication with Amazon Product Advertising Webservices
Instance methods
+ __construct() Constructs a new Amazon Web Services Client
# _prepareOptions() Prepare options for request
+ getRestClient() Returns a reference to the REST client
+ itemLookup() Look up item(s) by ASIN
+ itemSearch() Search for Items
+ setRestClient() Set REST client

Details

Instance fields

$_baseUri
protected $_baseUri = null
Var string
$_baseUriList
protected $_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
Var array
$_rest
protected $_rest = null
Reference to REST client object
$_secretKey
protected $_secretKey = null
Var string
$appId
public $appId
Amazon Web Services Access Key ID
Var string

Static methods

_checkErrors()
protected static function _checkErrors( DOMDocument $dom)
Check result for errors
Parameters
DOMDocument $dom
Returns void
buildRawSignature()
static public function buildRawSignature( $baseUri
$options
)
Build the Raw Signature Text
Parameters
string $baseUri
array $options
Returns string
computeSignature()
static public function computeSignature( $baseUri
$secretKey
array $options
)
Compute Signature for Authentication with Amazon Product Advertising Webservices
Parameters
string $baseUri
string $secretKey
array $options
Returns string

Instance methods

__construct()
public function __construct( $appId
$countryCode = 'US'
$secretKey = null
)
Constructs a new Amazon Web Services Client
Parameters
string $appId Developer's Amazon appid
string $countryCode Country code for Amazon service; may be US, UK, DE, JP, FR, CA
$secretKey
_prepareOptions()
protected function _prepareOptions( $query
array $options
array $defaultOptions
)
Prepare options for request
Parameters
string $query Action to perform
array $options
array $defaultOptions
Returns array
getRestClient()
public function getRestClient( )
Returns a reference to the REST client
itemLookup()
public function itemLookup( $asin
array $options = array()
)
Look up item(s) by ASIN
Parameters
string $asin Amazon ASIN ID
array $options
See also http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemLookupOperation
itemSearch()
public function itemSearch( array $options)
Search for Items
Parameters
array $options
See also http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation
setRestClient()
public function setRestClient( Zend_Rest_Client $client)
Set REST client
Parameters
Zend_Rest_Client $client