亚马逊产品 API - 寻找基本概述和信息 [英] Amazon products API - Looking for basic overview and information

查看:20
本文介绍了亚马逊产品 API - 寻找基本概述和信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近使用了 ebay API 后,我原以为从亚马逊请求信息也很简单,但似乎不是...

After using the ebay API recently, I was expecting it to be as simple to request info from Amazon, but it seems not...

似乎没有一个很好的网页来解释基础知识.首先,服务叫什么?我认为旧名称已被删除,AWS 随处可见的首字母缩写词(但这不是一个涵盖云计算和其他 20 种服务的总称吗?).

There does not seem to be a good webpage which explains the basics. For starters, what is the service called? The old name has been dropped I think, and the acronym AWS used everywhere (but isn't that an umbrella term which includes their cloud computing and 20 other services too?).

缺乏关于新签名"流程的明确信息.将我偶然发现的各个页面中的细节片段收集在一起,似乎在 2009 年 8 月之前,您只需要一个亚马逊的开发人员帐户即可发出请求并取回 XML.现在您必须使用一些奇特的加密过程在您的查询字符串中创建一个额外的数字.这是否意味着亚马逊数据对于只想快速简单解决方案的程序员来说是完全遥不可及的?

There is a lack of clear information about the new 'signature' process. Gathering together snippets of detail from various pages I've stumbled upon, it seems that prior to August 2009 you just needed a developer account with Amazon to make requests and get XML back. Now you have to use some fancy encryption process to create an extra number in your querystring. Does this mean Amazon data is completely out of reach for the programmer who just wants a quick and simple solution?

RSS 提要上似乎有一点点信息,您可以轻松获取已被标记"的项目提要,但我不知道是否也有使用 RSS 搜索标题的方法.有些网站似乎建议这样做,但我认为它们现在已经过时了?

There seems to be a tiny bit of information on RSS feeds, and you can get a feed of items that have been 'tagged' easily, but I can't tell if there is a way to search for titles using RSS too. Some websites seem to suggest this, but I think they are out of date now?

如果有人能对当前的比赛状态做一个简短的总结,我将不胜感激.我想要做的就是从我数据库中的书名中获取,然后使用 Classic ASP 从亚马逊获取一组匹配的产品,列出封面图片和价格.

If anyone can give a short summary to the current state of play I'd be very grateful. All I want to do is go from a book title in my database, and use Classic ASP to get a set of products that match from Amazon, listing cover images and prices.

Amazon 'widgets' 可以在我的页面上显示关键字搜索结果,但我对这些的控制较少,并且它们仅向用户显示 - 我的代码无法查看其中的内容.

Amazon 'widgets' can display keyword search results on my pages, but I have less control over these, and they are shown to the user only - my code can't look inside them.

推荐答案

您的帖子包含多个问题,所以我将尝试一次回答一个:

Your post contains several questions, so I'll try to answer them one at a time:

  1. 您感兴趣的 API 是 产品广告 API (PA).它允许您以编程方式访问以从亚马逊目录中搜索和检索产品信息.如果您在查找有关 API 的信息时遇到问题,那是因为该 Web 服务在最近的历史中经历了两次名称更改:它也被称为 ECS 和 AAWS.
  2. 您所指的签名过程与所有其他 AWS 服务用于身份验证的 HMAC 签名相同.签署您对产品广告 API 的请求所需的只是一个计算 SHA-1 哈希值和 AWS 开发人员密钥的函数.有关更多信息,请参阅开发人员文档中关于签署请求的部分.
  3. 据我所知,不支持通过 PA 检索产品或标签的 RSS 提要.如果有人有其他暗示的信息,请纠正我.
  4. REST 或 SOAP API 都应该让您的用例非常简单.亚马逊在此处提供了相当基本的入门"指南.此外,您可以在此处查看完整的 API 开发人员文档.
  1. The API you're interested in is the Product Advertising API (PA). It allows you programmatic access to search and retrieve product information from Amazon's catalog. If you're having trouble finding information on the API, that's because the web service has undergone two name changes in recent history: it was also known as ECS and AAWS.
  2. The signature process you're referring to is the same HMAC signature that all of the other AWS services use for authentication. All that's required to sign your requests to the Product Advertising API is a function to compute a SHA-1 hash and and AWS developer key. For more information, see the section of the developer documentation on signing requests.
  3. As far as I know, there is no support for retrieving RSS feeds of products or tags through PA. If anyone has information suggesting otherwise, please correct me.
  4. Either the REST or SOAP APIs should make your use case very straight forward. Amazon provides a fairly basic "getting started" guide available here. As well, you can view the complete API developer documentation here.

虽然文档有点难找(可能是因为所有的名称都发生了变化),但 PA API 的文档非常好,而且相当优雅.凭借一点点润滑脂和一些调用 Web 服务的先前经验,您应该可以轻松地从 API 获取所需的信息.

Although the documentation is a little hard to find (likely due to all the name changes), the PA API is very well documented and rather elegant. With a modicum of elbow grease and some previous experience in calling out to web services, you shouldn't have any trouble getting the information you need from the API.

这篇关于亚马逊产品 API - 寻找基本概述和信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆