API Documentation

Service/Amazon.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Amazon
version
$Id: Amazon.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_Service_Amazon

Description

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 license@zend.com so we can send you a copy immediately.

Zend_Service_Amazon

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Service
subpackage
Amazon
Properties
$appId
$_secretKey
$_baseUri
$_baseUriList
$_rest
Methods
__construct
itemSearch
itemLookup
getRestClient
setRestClient
_prepareOptions
computeSignature
buildRawSignature
_checkErrors

Description

Properties

$_baseUri

string $_baseUri = 'null'

Details

$_baseUri
string
visibility
protected
default
null
final
false
static
false

$_baseUriList

array $_baseUriList = 'array'

List of Amazon Web Service base URLs, indexed by country code

Details

$_baseUriList
array
visibility
protected
default
array
final
false
static
false

$_rest

Zend_Rest_Client $_rest = 'null'

Reference to REST client object

Details

$_rest
Zend_Rest_Client
visibility
protected
default
null
final
false
static
false

$_secretKey

string $_secretKey = 'null'

Details

$_secretKey
string
visibility
protected
default
null
final
false
static
false

$appId

string $appId = ''

Amazon Web Services Access Key ID

Details

$appId
string
visibility
public
default
final
false
static
false

Methods

__construct

__construct( string $appId, string $countryCode = US,  $secretKey = null ) : Zend_Service_Amazon

Constructs a new Amazon Web Services Client

Arguments
$appId
string
Developer's Amazon appid
$countryCode
string
Country code for Amazon service; may be US, UK, DE, JP, FR, CA
$secretKey
Details
visibility
public
final
false
static
false
throws

_checkErrors

_checkErrors( DOMDocument $dom ) : void

Check result for errors

Arguments
$dom
DOMDocument
Details
visibility
protected
final
false
static
true
throws

_prepareOptions

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

Prepare options for request

Arguments
$query
string
Action to perform
$options
array
User supplied options
$defaultOptions
array
Default options
Output
array
Details
visibility
protected
final
false
static
false

buildRawSignature

buildRawSignature( string $baseUri, array $options ) : string

Build the Raw Signature Text

Arguments
$baseUri
string
$options
array
Output
string
Details
visibility
public
final
false
static
true

computeSignature

computeSignature( string $baseUri, string $secretKey, array $options ) : string

Compute Signature for Authentication with Amazon Product Advertising Webservices

Arguments
$baseUri
string
$secretKey
string
$options
array
Output
string
Details
visibility
public
final
false
static
true

getRestClient

getRestClient( ) : Zend_Rest_Client

Returns a reference to the REST client

Details
visibility
public
final
false
static
false

itemLookup

itemLookup( string $asin, array $options = array ) : Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet

Look up item(s) by ASIN

Arguments
$asin
string
Amazon ASIN ID
$options
array
Query Options
Details
visibility
public
final
false
static
false
see
http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemLookupOperation
throws

itemSearch

itemSearch( array $options ) : Zend_Service_Amazon_ResultSet

Search for Items

Arguments
$options
array
Options to use for the Search Query
Details
visibility
public
final
false
static
false
see
http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation
throws

setRestClient

setRestClient(  $client ) : Zend_Service_Amazon

Set REST client

Arguments
$client
Zend_Rest_Client
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.