Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[ZF-12046] Update Amazon API version from 2005-10-05 to 2011-08-01 #1176

Merged
merged 1 commit into from May 9, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions documentation/manual/de/module_specs/Zend_Service_Amazon.xml
Expand Up @@ -139,7 +139,7 @@ $item = $amazon->itemLookup('B0000A432X');
<para>
Die <methodname>itemLookup()</methodname> Methode akzeptiert auch einen optionalen
zweiten Parameter für die Handhabung der Suchoptionen. Für komplette Details, inklusive
einer Liste der möglichen Optionen sehen Sie bitte in die <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">relevante
einer Liste der möglichen Optionen sehen Sie bitte in die <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemLookupOperation">relevante
Amazon Dokumentation</link>.
</para>

Expand Down Expand Up @@ -201,7 +201,7 @@ foreach ($results as $result) {
<para>
Die <methodname>itemSearch()</methodname> Methode akzeptiert einen einzelnen Parameter
als Array für die Handhabung der Suchoptionen. Für komplette Details, inklusive eine
Liste der möglichen Optionen sehen Sie bitte in die <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">relevante
Liste der möglichen Optionen sehen Sie bitte in die <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">relevante
Amazon Dokumentation</link>
</para>

Expand Down Expand Up @@ -259,7 +259,7 @@ foreach ($results as $result) {

<para>
Für weitere Informationen über die möglichen Optionen, sehen Sie bitte in die
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">relevante
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">relevante
Amazon Dokumentation</link>.
</para>
</example>
Expand Down
6 changes: 3 additions & 3 deletions documentation/manual/en/module_specs/Zend_Service_Amazon.xml
Expand Up @@ -138,7 +138,7 @@ $item = $amazon->itemLookup('B0000A432X');
<para>
The <methodname>itemLookup()</methodname> method also accepts an optional second
parameter for handling search options. For full details, including a list of available
options, please see the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">relevant
options, please see the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemLookupOperation">relevant
Amazon documentation</link>.
</para>

Expand Down Expand Up @@ -198,7 +198,7 @@ foreach ($results as $result) {
<para>
The <methodname>itemSearch()</methodname> method accepts a single array parameter for
handling search options. For full details, including a list of available options, please
see the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">relevant
see the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">relevant
Amazon documentation</link>
</para>

Expand Down Expand Up @@ -253,7 +253,7 @@ foreach ($results as $result) {
</para>

<para>
For more information on the available options, please refer to the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">relevant
For more information on the available options, please refer to the <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">relevant
Amazon documentation</link>.
</para>
</example>
Expand Down
6 changes: 3 additions & 3 deletions documentation/manual/fr/module_specs/Zend_Service_Amazon.xml
Expand Up @@ -150,7 +150,7 @@ $item = $amazon->itemLookup('B0000A432X');
<para>
La méthode <methodname>itemLookup()</methodname> accepte aussi un second paramètre optionnel
pour gérer les options de recherche. Pour les détails complets et une liste des options
disponibles, visitez <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">
disponibles, visitez <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemLookupOperation">
la documentation Amazon correspondante. </link>.
</para>

Expand Down Expand Up @@ -213,7 +213,7 @@ foreach ($results as $result) {
<para>
La méthode <methodname>itemSearch()</methodname> accepte un seul tableau en paramètre pour
gérer les options de recherche. Pour plus de détails et une liste des options
disponibles, visitez <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">
disponibles, visitez <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">
la documentation Amazon correspondante </link>
</para>

Expand Down Expand Up @@ -272,7 +272,7 @@ foreach ($results as $result) {

<para>
Pour plus d'information sur les options disponibles, vous pouvez vous
référer à la <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">documentation
référer à la <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">documentation
spécifique</link>.
</para>
</example>
Expand Down
6 changes: 3 additions & 3 deletions documentation/manual/ja/module_specs/Zend_Service_Amazon.xml
Expand Up @@ -131,7 +131,7 @@ $item = $amazon->itemLookup('B0000A432X');
<para>
<methodname>itemLookup()</methodname> メソッドにオプションの第 2 パラメータを渡すことで、
検索オプションを指定できます。使用可能なオプションを含む詳細は、
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">関連する Amazon の文書</link>
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemLookupOperation">関連する Amazon の文書</link>
を参照ください。
</para>
<note><info><title>画像の情報</title></info>
Expand Down Expand Up @@ -182,7 +182,7 @@ foreach ($results as $result) {
<para>
<methodname>itemSearch()</methodname> は配列のパラメータをひとつ受け取り、
このパラメータで検索オプションを指定します。使用可能なオプションを含む詳細は、
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">関連する Amazon の文書</link>
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">関連する Amazon の文書</link>
を参照ください。
</para>
<tip>
Expand Down Expand Up @@ -228,7 +228,7 @@ foreach ($results as $result) {
</para>
<para>
使用可能なオプションについての詳細な情報は、
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">関連する Amazon の文書</link>
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">関連する Amazon の文書</link>
を参照ください。
</para>
</example>
Expand Down
6 changes: 3 additions & 3 deletions documentation/manual/nl/module_specs/Zend_Service_Amazon.xml
Expand Up @@ -120,7 +120,7 @@ $item = $amazon->itemLookup('B0000A432X');
<para>
De <code>itemLookup()</code> methode aanvaardt ook een optionele tweede parameter om zoekopties af te handelen.
Voor alle details, inclusief een lijst van beschikbare opties, zie de
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">relevante Amazon documentatie</link>.
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemLookupOperation">relevante Amazon documentatie</link>.
<note>
<para>
Om informatie over de beelden te verkrijgen voor je zoekresultaten, moet je de optie <code>ResponseGroup</code> tot <code>Medium</code> of <code>Large</code> zetten.
Expand Down Expand Up @@ -148,7 +148,7 @@ foreach($response as $r) {
<para>
De <code>itemSearch()</code> methode aanvaardt een enkele array array parameter om zoekopties af te handelen.
Voor alle details, inclusief een lijst van beschikbare opties, zie de
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">relevante Amazon documentatie</link>
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">relevante Amazon documentatie</link>
</para>
<tip>
<para>
Expand Down Expand Up @@ -192,7 +192,7 @@ foreach ($results as $result) {
</para>
<para>
Voor meer informatie over de beschikbare opties verwijzen we je graag door naar de
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">relevante Amazon documentatie</link>.
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">relevante Amazon documentatie</link>.
</para>
</example>
</section>
Expand Down
6 changes: 3 additions & 3 deletions documentation/manual/pl/module_specs/Zend_Service_Amazon.xml
Expand Up @@ -129,7 +129,7 @@ $item = $amazon->itemLookup('B0000A432X');
Metoda <code>itemLookup()</code> także akceptuje opcjonalny drugi parametr
do obsługi opcji wyszukiwania. Aby poznać pełne informacje, włączając
w to listę dostępnych opcji odwiedź
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemLookupOperation">dokumentację Amazon</link>.
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemLookupOperation">dokumentację Amazon</link>.
</para>
<note><info><title>Informacje o zdjęciach</title></info>

Expand Down Expand Up @@ -182,7 +182,7 @@ foreach ($results as $result) {
Metoda <code>itemSearch()</code> akceptuje jeden parametr w postaci
tablicy do obsługi opcji wyszukiwania. Aby poznać wszystkie
szczegóły włączając w to listę dostępnych opcji, proszę zobacz
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">dokumentację Amazon</link>
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/103-9285448-4703844?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">dokumentację Amazon</link>
</para>
<tip>
<para>
Expand Down Expand Up @@ -231,7 +231,7 @@ foreach ($results as $result) {
</para>
<para>
Aby uzyskać więcej informacji o dostępnych opcjach, proszę odwiedź
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2005-10-05&amp;p=ApiReference/ItemSearchOperation">dokumentację Amazon</link>.
<link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.amazon.com/gp/aws/sdk/main.html/102-9041115-9057709?s=AWSEcommerceService&amp;v=2011-08-01&amp;p=ApiReference/ItemSearchOperation">dokumentację Amazon</link>.
</para>
</example>
</section>
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Service/Amazon/Accessories.php
Expand Up @@ -50,7 +50,7 @@ class Accessories
public function __construct(\DOMElement $dom)
{
$xpath = new \DOMXPath($dom->ownerDocument);
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('ASIN', 'Title') as $el) {
$this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data;
}
Expand Down
10 changes: 5 additions & 5 deletions library/Zend/Service/Amazon/Amazon.php
Expand Up @@ -106,7 +106,7 @@ public function __construct($appId, $countryCode = 'US', $secretKey = null)
* @param array $options Options to use for the Search Query
* @throws \Zend\Service\Amazon\Exception
* @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)
{
Expand Down Expand Up @@ -136,7 +136,7 @@ public function itemSearch(array $options)
*
* @param string $asin Amazon ASIN ID
* @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\Amazon\Exception
* @return Zend_Service_Amazon_Item|Zend_Service_Amazon_ResultSet
*/
Expand All @@ -161,7 +161,7 @@ public function itemLookup($asin, array $options = array())
$dom->loadXML($response->getBody());
self::_checkErrors($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');

if ($items->length == 1) {
Expand Down Expand Up @@ -211,7 +211,7 @@ protected function _prepareOptions($query, array $options, array $defaultOptions
$options['AWSAccessKeyId'] = $this->appId;
$options['Service'] = 'AWSECommerceService';
$options['Operation'] = (string) $query;
$options['Version'] = '2005-10-05';
$options['Version'] = '2011-08-01';

// de-canonicalize out sort key
if (isset($options['ResponseGroup'])) {
Expand Down Expand Up @@ -282,7 +282,7 @@ static public function buildRawSignature($baseUri, $options)
protected static function _checkErrors(\DOMDocument $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) {
$code = $xpath->query('//az:Error/az:Code/text()')->item(0)->data;
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Service/Amazon/CustomerReview.php
Expand Up @@ -75,7 +75,7 @@ class CustomerReview
public function __construct(\DOMElement $dom)
{
$xpath = new \DOMXPath($dom->ownerDocument);
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('Rating', 'HelpfulVotes', 'CustomerId', 'TotalVotes', 'Date', 'Summary', 'Content') as $el) {
$result = $xpath->query("./az:$el/text()", $dom);
if ($result->length == 1) {
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Service/Amazon/EditorialReview.php
Expand Up @@ -50,7 +50,7 @@ class EditorialReview
public function __construct(\DOMElement $dom)
{
$xpath = new \DOMXPath($dom->ownerDocument);
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');
foreach (array('Source', 'Content') as $el) {
$this->$el = (string) $xpath->query("./az:$el/text()", $dom)->item(0)->data;
}
Expand Down
2 changes: 1 addition & 1 deletion library/Zend/Service/Amazon/Image.php
Expand Up @@ -62,7 +62,7 @@ class Image
public function __construct(\DOMElement $dom)
{
$xpath = new \DOMXPath($dom->ownerDocument);
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2005-10-05');
$xpath->registerNamespace('az', 'http://webservices.amazon.com/AWSECommerceService/2011-08-01');

$this->Url = Uri\UriFactory::factory($xpath->query('./az:URL/text()', $dom)->item(0)->data);
$this->Height = (int) $xpath->query('./az:Height/text()', $dom)->item(0)->data;
Expand Down