【问题标题】:Amazon Web Service Usage for Zend Framework 1.11.11Zend Framework 1.11.11 的 Amazon Web 服务使用
【发布时间】:2012-04-16 06:40:34
【问题描述】:

我正在尝试使用带有 Zend 框架的 Amazon Web Service 搜索/显示书籍。

this page 上的示例由于 Amazon API 的更改而无法运行。我想从现在开始我需要提供我的 Associate Tag,但我不知道怎么做。

我使用从以下位置获得的密钥: https://aws-portal.amazon.com/gp/aws/securityCredentials

谁能告诉我如何做到这一点?

【问题讨论】:

    标签: php zend-framework amazon-web-services


    【解决方案1】:

    Amazon API 更新的修复应该在 ZF 的下一个迷你版本中。如果您迫不及待,可以在此处应用补丁:http://framework.zend.com/issues/browse/ZF-12046 到您的 1.11.11 副本,以修复与您可能遇到的 AWS 版本相关的错误。

    AssociateTag 要求实际上是亚马逊在上述之前所做的一项单独的向后不兼容的更改。您可以将此作为附加参数提供给 itemSearch,例如:

    $amazon = new Zend_Service_Amazon('AMAZON_API_KEY', 'US', 'AMAZON_SECRET_KEY');
    $results = $amazon->itemSearch(array(
        'SearchIndex' => 'Books',
        'Keywords' => 'php',
        'AssociateTag' => 'yourtaghere'
    ));
    

    【讨论】:

      猜你喜欢
      • 2012-04-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多