首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何从php中的Amazon产品广告API中获取价格价值

如何从php中的Amazon产品广告API中获取价格价值
EN

Stack Overflow用户
提问于 2014-12-29 12:17:43
回答 1查看 249关注 0票数 0

当我第一次使用Amazon产品广告API检索产品价格信息时,我得到的响应如下,

代码语言:javascript
复制
["Item"]=>
object(stdClass)#15 (3) {
  ["ASIN"]=>
  string(10) "B0017TZY5Y"
  ["OfferSummary"]=>
  object(stdClass)#16 (6) {
    ["LowestUsedPrice"]=>
    object(stdClass)#17 (3) {
      ["Amount"]=>
      int(820)
      ["CurrencyCode"]=>
      string(3) "EUR"
      ["FormattedPrice"]=>
      string(8) "EUR 8,20"
    }
    ["LowestCollectiblePrice"]=>
    object(stdClass)#18 (3) {
      ["Amount"]=>
      int(3490)
      ["CurrencyCode"]=>
      string(3) "EUR"
      ["FormattedPrice"]=>
      string(9) "EUR 34,90"
    }
    ["TotalNew"]=>
    string(1) "0"
    ["TotalUsed"]=>
    string(1) "6"
    ["TotalCollectible"]=>
    string(1) "1"
    ["TotalRefurbished"]=>
    string(1) "0"
  }
  ["Offers"]=>
  object(stdClass)#19 (3) {
    ["TotalOffers"]=>
    int(0)
    ["TotalOfferPages"]=>
    int(0)
    ["MoreOffersUrl"]=>
    string(1) "0"
  }
}

我想知道,如何使用php从响应中检索LowestUsedPriceLowestCollectiblePrice值。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-12-29 12:46:39

代码语言:javascript
复制
$YourObject->Item->OfferSummary->LowestCollectiblePrice // for LowestCollectiblePrice value 
$YourObject->Item->OfferSummary->LowestUsedPrice // for LowestUsedPrice value 
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27688731

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档