douchengchu8374 2013-03-22 02:56
浏览 59
已采纳

亚马逊产品广告API最高卖家响应组不会返回其他项目属性

I've been using this code:

defined('AWS_API_KEY') or define('AWS_API_KEY', 'AGGAVZCVASDG123A');
defined('AWS_API_SECRET_KEY') or define('AWS_API_SECRET_KEY', '132131235151asdfaGFfasdf');
defined('AWS_ASSOCIATE_TAG') or define('AWS_ASSOCIATE_TAG', 'test05-12');
$amazonEcs = new AmazonECS(AWS_API_KEY, AWS_API_SECRET_KEY, 'com', AWS_ASSOCIATE_TAG);
$amazonEcs->associateTag(AWS_ASSOCIATE_TAG);
$amazonEcs->returnType(AmazonECS::RETURN_TYPE_ARRAY);

$response = $amazonEcs->responseGroup('TopSellers')->browseNodeLookup($node);

Unfortunately this code does not return the product's Price, Images and other attributes. It only returns this result:

<TopItemSet>
   <Type>TopSellers</Type>
   <TopItem>
            <ASIN>0553576399</ASIN>
            <Title>Distraction</Title>
            <ProductGroup>Book</ProductGroup>
            <Author>Bruce Sterling</Author>
       </TopItem>
       <TopItem>
        ....
       .....
</TopItemSet>

Is there a way I can show those when calling the TopSellers response group?

I have a solution before that everytime I call TopSellers, I get the ASIN of the items that the TopSellers produced(they produced 10 top seller items), then I use this code:

$response = $amazonEcs->responseGroup('Images,ItemAttributes')->page(1)->category('All')->search($asin);

That would do a searching of the product that is based on the ASIN that the TopSeller response group produced. The only problem with this code is that it will cause a throttled error. Throttled Error means the my request limit on amazon api have exceeded, because obviously that code is kinda exhausting to call because it keeps on requesting data from API.

I've been reading the docs of Product Advertising API here http://docs.aws.amazon.com/AWSECommerceService/latest/DG/RG_TopSellers.html

Your thoughts will be greatly appreciated!

  • 写回答

1条回答 默认 最新

  • dss89001 2013-03-22 07:02
    关注

    I already have an answer on my own question:

    It can be found here: https://forums.aws.amazon.com/thread.jspa?messageID=435522&#435522

    Thanks! :)

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 uniapp uview http 如何实现统一的请求异常信息提示?
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)