Moodle  2.2.1
http://www.collinsharper.com
Zend_Service_Amazon Class Reference
Inheritance diagram for Zend_Service_Amazon:

Public Member Functions

 __construct ($appId, $countryCode= 'US', $secretKey=null)
 itemSearch (array $options)
 itemLookup ($asin, array $options=array())
 getRestClient ()
 setRestClient (Zend_Rest_Client $client)

Static Public Member Functions

static computeSignature ($baseUri, $secretKey, array $options)
static buildRawSignature ($baseUri, $options)

Data Fields

 $appId

Protected Member Functions

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

Static Protected Member Functions

static _checkErrors (DOMDocument $dom)

Protected Attributes

 $_secretKey = null
 $_baseUri = null
 $_baseUriList
 $_rest = null

Detailed Description

Definition at line 36 of file Amazon.php.


Constructor & Destructor Documentation

__construct ( appId,
countryCode = 'US',
secretKey = null 
)

Constructs a new Amazon Web Services Client

Parameters:
string$appIdDeveloper's Amazon appid
string$countryCodeCountry code for Amazon service; may be US, UK, DE, JP, FR, CA
Exceptions:
Zend_Service_Exception
Returns:
Zend_Service_Amazon
See also:
Zend_Service_Exception

Definition at line 83 of file Amazon.php.


Member Function Documentation

static _checkErrors ( DOMDocument $  dom) [static, protected]

Check result for errors

Parameters:
DOMDocument$dom
Exceptions:
Zend_Service_Exception
Returns:
void
See also:
Zend_Service_Exception

Definition at line 302 of file Amazon.php.

Here is the caller graph for this function:

_prepareOptions ( query,
array options,
array defaultOptions 
) [protected]

Prepare options for request

Parameters:
string$queryAction to perform
array$optionsUser supplied options
array$defaultOptionsDefault options
Returns:
array

Definition at line 227 of file Amazon.php.

Here is the call graph for this function:

Here is the caller graph for this function:

static buildRawSignature ( baseUri,
options 
) [static]

Build the Raw Signature Text

Parameters:
string$baseUri
array$options
Returns:
string

Definition at line 280 of file Amazon.php.

Here is the caller graph for this function:

static computeSignature ( baseUri,
secretKey,
array options 
) [static]

Compute Signature for Authentication with Amazon Product Advertising Webservices

Parameters:
string$baseUri
string$secretKey
array$options
Returns:
string

Definition at line 263 of file Amazon.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Returns a reference to the REST client

Returns:
Zend_Rest_Client

Definition at line 198 of file Amazon.php.

Here is the caller graph for this function:

itemLookup ( asin,
array options = array() 
)

Look up item(s) by ASIN

Parameters:
string$asinAmazon ASIN ID
array$optionsQuery Options
See also:
http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemLookupOperation
Exceptions:
Zend_Service_Exception
Returns:
Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet
See also:
Zend_Service_Exception
Zend_Service_Amazon_Item
Zend_Service_Amazon_ResultSet

Definition at line 149 of file Amazon.php.

Here is the call graph for this function:

Here is the caller graph for this function:

itemSearch ( array options)

Search for Items

Parameters:
array$optionsOptions to use for the Search Query
Exceptions:
Zend_Service_Exception
Returns:
Zend_Service_Amazon_ResultSet
See also:
http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation
See also:
Zend_Service_Exception
Zend_Service_Amazon_ResultSet

Definition at line 109 of file Amazon.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Set REST client

Parameters:
Zend_Rest_Client
Returns:
Zend_Service_Amazon

Definition at line 212 of file Amazon.php.


Field Documentation

$_baseUri = null [protected]

Definition at line 53 of file Amazon.php.

$_baseUriList [protected]
Initial value:
 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')

Definition at line 60 of file Amazon.php.

$_rest = null [protected]

Definition at line 72 of file Amazon.php.

$_secretKey = null [protected]

Definition at line 48 of file Amazon.php.

$appId

Definition at line 43 of file Amazon.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations