如何从亚马逊的产品广告 API 获取图像和描述?
$client = new AmazonECS(get_option('awskey'), get_option('awssecret'), 'UK');
$response = $client->lookup('0596157134');
var_dump($response); // Debugging
是否可以使用 API,或者是否有其他方法来获取产品描述和图像?
I am using the Amazon Product Advertising API (formerly ECS) in PHP to get product information using an ASIN code. I can get the information but images and product descriptions are missing. I've looked around the API class and couldn't find anything helpful. The code I am using to get the product details is:
$client = new AmazonECS(get_option('awskey'), get_option('awssecret'), 'UK');
$response = $client->lookup('0596157134');
var_dump($response); // Debugging
Is it possible with the API, or is there another way to get the product description and image?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您进行的商品查找调用仅返回有关商品的基本信息。您需要使用 ResponseGroup 参数指定您希望 Amazon 返回哪些信息(请参阅 亚马逊的 ItemLookup 文档 了解更多信息)。如果您想获取图片和产品描述,可以请求“中”响应组。尝试以下调用:
The item lookup call you are making only returns basic information about the product. You will need to use the ResponseGroup parameter to specify what information you want Amazon to return (see Amazon's ItemLookup Documentation for more information). If you want to get the images and product description, you can request the "Medium" response group. Try the following call: