【发布时间】:2019-01-18 16:37:19
【问题描述】:
我的目标是通过 ebay api,JSON 格式获取商品详细信息(名称、类别、甚至价格)。
以下是 ebay 搜索到的示例商品,EAN 条码 0705632085943: https://www.ebay.co.uk/sch/i.html?_osacat=0&_odkw=0705632085943&_from=R40&_trksid=m570.l1313&_nkw=0705632085943&_sacat=0
我已经阅读了 ebay 发布的这个页面:getProductDetails: https://developer.ebay.com/devzone/product/CallRef/getProductDetails.html
所以在我的项目中,我使用了:
http://svcs.ebay.com/services/search/FindingService/v1?OPERATION-NAME=getProductDetails&SERVICE-VERSION=1.0.0&SECURITY-APPNAME=My-App-Name&RESPONSE-DATA-FORMAT=JSON&productDetailsRequest.productIdentifier.EAN = 5053826000186
但是,返回:
{"errorMessage":[{"error":[{"errorId":["2000"],"domain":["CoreRuntime"],"severity":["Error"],"category":["Request"],"message":["Service operation getProductDetails is unknown"],"subdomain":["Inbound_Meta_Data"],"parameter":[{"@name":"Param1","__value__":"getProductDetails"}]}]}]}
我对网络语言知之甚少,是从 Swift 开始的。在处理这个问题上有什么可行的建议吗?
【问题讨论】: