【发布时间】:2012-07-26 12:28:45
【问题描述】:
我想知道是否有办法将我的亚马逊 MWS scratchpad 查询转换为 API 调用
例如当使用 MWS 便签本时,我得到了一个要签名的字符串
"mws.amazonservices.co.uk"
."/Products/2011-10-01"
."AWSAccessKeyId=xxx&Action=ListMatchingProducts"
."&MarketplaceId=xxx&Query=star%20wars&SellerId=xxx"
."&SignatureMethod=HmacSHA256&SignatureVersion=2
."&Timestamp=2012-07-27T18%3A59%3A30Z&Version=2011-10-01
花了几天时间试图让Amazons order API 工作后,我放弃了,一直希望下面的函数会返回一个 xml 字符串......但没有运气
function callAmazon(){
$apicall = "mws.amazonservices.co.uk"
."/Products/2011-10-01"
."AWSAccessKeyId=xxx&Action=ListMatchingProducts"
."&MarketplaceId=xxx&Query=star%20wars&SellerId=xxx"
."&SignatureMethod=HmacSHA256&SignatureVersion=2
."&Timestamp=2012-07-27T18%3A59%3A30Z&Version=2011-10-01
$resp = simplexml_load_file($apicall); //make the call
}
有人有什么建议吗?
【问题讨论】:
标签: php xml api amazon amazon-mws