如何获得通过亚马逊的库存管理(AIM)的API产品形象 [英] How to get product image by Amazon Inventory Management ( AIM ) APIs

查看:177
本文介绍了如何获得通过亚马逊的库存管理(AIM)的API产品形象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何通过亚马逊的库存管理来获得产品形象(AIM)的API

How to get product image by Amazon Inventory Management ( AIM ) APIs

推荐答案

您将无法获得通过亚马逊的库存管理API产品图片。您将需要使用Amazon的产品广告API来获取产品功能,如图片,尺寸,出版商,销售排名等...

You will not be able to get product images using the Amazon Inventory Management API. You will need to use the Amazon Product Advertising API to get product features such as images, dimensions, publisher, sales rank etc...

如果你正在试图获得,比如产品的形象,商家库存的每一件产品,你应该:

If you are trying to get the product image for, say, every product in a merchant's inventory, you should:


  1. 获取商家库存的所有项目的列表

  2. 对于该列表中的每个项目,要求ItemLookup操作(参见DOC:的http://docs.amazonwebservices.com/AWSECommerceService/2010-11-01/DG/ItemLookup.html)通过传递ASIN(唯一标识符)的项目为ITEMID,并设置ResponseGroup为图像。

  1. Get a list of all items in a merchant's inventory
  2. For each item in that list, request the ItemLookup Operation (See doc: http://docs.amazonwebservices.com/AWSECommerceService/2010-11-01/DG/ItemLookup.html) by passing the ASIN (unique identifier) of the item as the ItemId, and setting the ResponseGroup to "Images".

您请求应该是这样的:

http://ecs.amazonaws.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]&
Operation=ItemLookup&
ItemId=[Your-ASIN]&
ResponseGroup=Images&
Timestamp=[YYYY-MM-DDThh:mm:ssZ]&
Signature=[Request Signature]

的响应将是这样的:

The response will look like:

<Item>
  <ASIN>[Your-ASIN]</ASIN>
  <SmallImage>
    <URL>http://ecx.images-amazon.com/images/I/....jpg</URL>
    <Height Units="pixels">75</Height>
    <Width Units="pixels">58</Width>
  </SmallImage>
  <MediumImage>
    <URL>http://ecx.images-amazon.com/images/I/....jpg</URL>
    <Height Units="pixels">160</Height>
    <Width Units="pixels">124</Width>
  </MediumImage>
  <LargeImage>
    <URL>http://ecx.images-amazon.com/images/I/....jpg</URL>
    <Height Units="pixels">500</Height>
    <Width Units="pixels">389</Width>
  </LargeImage>
</Item>

您可以轻松地解析响应得到你想要使用的图像的URL。

You can easily parse the response to get the URL of the image you want to use.

的几个注意事项:


  • 如果您想要得到的产品形象
    对产品不同的列表
    (比如说,所有的产品订单的
    需要满足),只是改变
    第1步相应。

  • 如果您需要了解更多的详细信息
    项目,设置参数ResponseGroup
    与中或大时,
    调用ItemLookup操作。
    亚马逊产品广告DOC
    上面给出的链接有所有细节。

  • 您还可以获取产品图片
    直接通过构建其网址
    使用该产品ASIN。一个好的
    为建设URL可以参考
    在发现
    http://aaugh.com/imageabuse.html
    这可能是工作作为一个快速,临时
    黑客,但明白,亚马逊可能
    块或在任何混淆这些网址
    时间。

这篇关于如何获得通过亚马逊的库存管理(AIM)的API产品形象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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