|
@@ -104,7 +104,7 @@ class Zend_Service_Amazon
|
|
|
* @param array $options Options to use for the Search Query
|
|
* @param array $options Options to use for the Search Query
|
|
|
* @throws Zend_Service_Exception
|
|
* @throws Zend_Service_Exception
|
|
|
* @return Zend_Service_Amazon_ResultSet
|
|
* @return Zend_Service_Amazon_ResultSet
|
|
|
- * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemSearchOperation
|
|
|
|
|
|
|
+ * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2011-08-01&p=ApiReference/ItemSearchOperation
|
|
|
*/
|
|
*/
|
|
|
public function itemSearch(array $options)
|
|
public function itemSearch(array $options)
|
|
|
{
|
|
{
|
|
@@ -142,7 +142,7 @@ class Zend_Service_Amazon
|
|
|
*
|
|
*
|
|
|
* @param string $asin Amazon ASIN ID
|
|
* @param string $asin Amazon ASIN ID
|
|
|
* @param array $options Query Options
|
|
* @param array $options Query Options
|
|
|
- * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2005-10-05&p=ApiReference/ItemLookupOperation
|
|
|
|
|
|
|
+ * @see http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&v=2011-08-01&p=ApiReference/ItemLookupOperation
|
|
|
* @throws Zend_Service_Exception
|
|
* @throws Zend_Service_Exception
|
|
|
* @return Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet
|
|
* @return Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet
|
|
|
*/
|
|
*/
|
|
@@ -171,7 +171,7 @@ class Zend_Service_Amazon
|
|
|
$dom->loadXML($response->getBody());
|
|
$dom->loadXML($response->getBody());
|
|
|
self::_checkErrors($dom);
|
|
self::_checkErrors($dom);
|
|
|
$xpath = new DOMXPath($dom);
|
|
$xpath = new DOMXPath($dom);
|
|
|
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
|
|
|
|
|
|
|
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
|
|
|
$items = $xpath->query('//az:Items/az:Item');
|
|
$items = $xpath->query('//az:Items/az:Item');
|
|
|
|
|
|
|
|
if ($items->length == 1) {
|
|
if ($items->length == 1) {
|
|
@@ -229,7 +229,7 @@ class Zend_Service_Amazon
|
|
|
$options['AWSAccessKeyId'] = $this->appId;
|
|
$options['AWSAccessKeyId'] = $this->appId;
|
|
|
$options['Service'] = 'AWSECommerceService';
|
|
$options['Service'] = 'AWSECommerceService';
|
|
|
$options['Operation'] = (string) $query;
|
|
$options['Operation'] = (string) $query;
|
|
|
- $options['Version'] = '2005-10-05';
|
|
|
|
|
|
|
+ $options['Version'] = '2011-08-01';
|
|
|
|
|
|
|
|
// de-canonicalize out sort key
|
|
// de-canonicalize out sort key
|
|
|
if (isset($options['ResponseGroup'])) {
|
|
if (isset($options['ResponseGroup'])) {
|
|
@@ -302,7 +302,7 @@ class Zend_Service_Amazon
|
|
|
protected static function _checkErrors(DOMDocument $dom)
|
|
protected static function _checkErrors(DOMDocument $dom)
|
|
|
{
|
|
{
|
|
|
$xpath = new DOMXPath($dom);
|
|
$xpath = new DOMXPath($dom);
|
|
|
- $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
|
|
|
|
|
|
|
+ $xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
|
|
|
|
|
|
|
|
if ($xpath->query('//az:Error')->length >= 1) {
|
|
if ($xpath->query('//az:Error')->length >= 1) {
|
|
|
$code = $xpath->query('//az:Error/az:Code/text()')->item(0)->data;
|
|
$code = $xpath->query('//az:Error/az:Code/text()')->item(0)->data;
|