Ios 为什么不';我不能马上从易趣获得产品价格吗?
我通过以下方式获取易趣产品信息:Ios 为什么不';我不能马上从易趣获得产品价格吗?,ios,asp.net,iphone,web-services,Ios,Asp.net,Iphone,Web Services,我通过以下方式获取易趣产品信息: http://open.api.ebay.com/shopping? callname=FindProducts& responseencoding=XML& appid=YourAppIDHere& siteid=0& version=525& QueryKeywords=harry%20potter& AvailableItemsOnly=true& Ma
http://open.api.ebay.com/shopping?
callname=FindProducts&
responseencoding=XML&
appid=YourAppIDHere&
siteid=0&
version=525&
QueryKeywords=harry%20potter&
AvailableItemsOnly=true&
MaxEntries=2
但我没有立即得到产品价格。我应该更改请求参数吗?或者我应该使用ebay Web服务的另一种方法来获取此信息
答案是
<FindProductsResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2012-11-30T06:54:54.713Z</Timestamp>
<Ack>Success</Ack>
<Build>E799_CORE_BUNDLED_15523174_R1</Build>
<Version>799</Version>
<ApproximatePages>700</ApproximatePages>
<MoreResults>true</MoreResults>
<PageNumber>1</PageNumber>
<Product>
<DomainName>DVDs</DomainName>
<DetailsURL>
http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&IncludeAttributes=1&ShowAttributesTable=1&ProductMementoString=119128:2:1049:4276619924:441341764:7a3b4632d7a0c4ee860c374349c61b36:1:1:1:5000000672733
</DetailsURL>
<DisplayStockPhotos>true</DisplayStockPhotos>
<ProductID type="Reference">110258144</ProductID>
<ProductID type="UPC">883929182879</ProductID>
<ItemSpecifics>
<NameValueList>
<Name>Movie Rating</Name>
<Value>PG-13 (MPAA)</Value>
</NameValueList>
<NameValueList>
<Name>Genre</Name>
<Value>Childrens</Value>
</NameValueList>
<NameValueList>
<Name>Format</Name>
<Value>DVD</Value>
</NameValueList>
<NameValueList>
<Name>Work Name</Name>
<Value>Harry Potter: Complete 8-Film Collection</Value>
</NameValueList>
<NameValueList>
<Name>Region Code</Name>
<Value>Region 1</Value>
</NameValueList>
</ItemSpecifics>
<ReviewCount>195</ReviewCount>
<StockPhotoURL>
http://i.ebayimg.com/00/$(KGrHqV,!g0E6ZCwQ)wpBOuWbUNB,g~~_6.JPG?set_id=89040003C1
</StockPhotoURL>
<Title>
Harry Potter: Complete 8-Film Collection (DVD, 2011, 8-Disc Set)
</Title>
</Product>
<Product>
<DomainName>DVDs</DomainName>
<DetailsURL>
http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&IncludeAttributes=1&ShowAttributesTable=1&ProductMementoString=119128:2:1049:1597262630:429151180:bf834db05cfb5150fe073087ebe92117:1:1:1:1415162318
</DetailsURL>
<DisplayStockPhotos>true</DisplayStockPhotos>
<ProductID type="Reference">99846530</ProductID>
<ProductID type="UPC">883929139446</ProductID>
<ItemSpecifics>
<NameValueList>
<Name>Movie Rating</Name>
<Value>PG-13 (MPAA)</Value>
</NameValueList>
<NameValueList>
<Name>Genre</Name>
<Value>Science-Fiction/Fantasy</Value>
</NameValueList>
<NameValueList>
<Name>Director</Name>
<Value>David Yates</Value>
</NameValueList>
<NameValueList>
<Name>Format</Name>
<Value>DVD</Value>
</NameValueList>
<NameValueList>
<Name>Work Name</Name>
<Value>Harry Potter and the Deathly Hallows: Part I</Value>
</NameValueList>
<NameValueList>
<Name>Region Code</Name>
<Value>Region 1</Value>
</NameValueList>
<NameValueList>
<Name>Producer</Name>
<Value>David Heyman</Value>
</NameValueList>
</ItemSpecifics>
<ReviewCount>163</ReviewCount>
<StockPhotoURL>
http://i.ebayimg.com/00/$(KGrHqF,!l0E2DwP)(v!BNo16imfYQ~~_6.JPG?set_id=89040003C1
</StockPhotoURL>
<Title>
Harry Potter and the Death
2012-11-30T06:54:54.713Z
成功
E799_核心_捆绑_15523174_R1
799
700
真的
1.
DVD专区
http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&IncludeAttributes=1&ShowAttributesTable=1&ProductMementoString=119128:2:1049:4276619924:441341764:7a3b4632d7a0c4ee860c374349c61b36:1:1:1:5000000672733
真的
110258144
883929182879
电影分级
PG-13(百万帕)
体裁
儿童
格式
数字化视频光盘
工作名称
《哈利·波特:8部电影全集》
区号
区域1
195
http://i.ebayimg.com/00/$(KGrHqV,!g0E6ZCwQ)wpBOuWbUNB,g~~~\u 6.JPG?set_id=89040003C1
《哈利·波特:完整的8部电影集》(DVD,2011,8碟集)
DVD专区
http://syicatalogs.ebay.com/ws/eBayISAPI.dll?PageSyiProductDetails&IncludeAttributes=1&ShowAttributesTable=1&ProductMementoString=119128:2:1049:1597262630:429151180:bf834db05cfb5150fe073087ebe92117:1:1:1:1415162318
真的
99846530
883929139446
电影分级
PG-13(百万帕)
体裁
科幻/幻想
经理
大卫·叶茨
格式
数字化视频光盘
工作名称
哈利·波特与死亡圣器:第一部分
区号
区域1
制作人
大卫·海曼
163
http://i.ebayimg.com/00/$(KGrHqF,!l0E2DwP)(v!BNo16imfYQ~~~\u 6.JPG?set_id=89040003C1
哈利·波特与死亡
经过看起来某些值在响应中有条件出现。因此,您可能需要检查响应是否首先返回了价格,如果没有,请使用产品id值查询另一个api。HTH。检查:
URL格式(HTTP GET)。另请参阅此URL的非包装版本。有关非XML格式的结果,
为responseencoding指定不同的值
http://open.api.ebay.com/shopping?
callname=GetSingleItem&
responseencoding=XML&
appid=YourAppIDHere&
siteid=0&
version=515&
ItemID=180126682091&
IncludeSelector=Description,ItemSpecifics
您必须传递ItemID才能获取。ItemID是否与110258144或883929182879相同?请检查此链接: