【问题标题】:Ebay API with description带有描述的 Ebay API
【发布时间】:2011-08-09 20:32:21
【问题描述】:

如何让 Ebay API 返回描述?

我有一些代码可以进行如下 API 调用:

http://svcs.ebay.com/services/search/FindingService/v1?
callname=findItemsAdvanced&
responseencoding=XML&
appid=appid&
siteid=0&
version=525&
QueryKeywords=keywords;

它返回项目,但缺少完整的描述文本。我没有看到下一步要求详细说明。

【问题讨论】:

    标签: ebay-api


    【解决方案1】:

    【讨论】:

    • Shopping API 和 Finding API 有什么区别?
    • 查找 API 是一个轻量级 API,旨在让您的应用程序提供快速的项目列表(也就是没有详细信息)。
    • 有人可以帮我找到 ShippingProfileID、ReturnProfileID 和 PaymantProfilID 吗? ——
    【解决方案2】:

    我使用以下(从 ebay 获取项目详细信息的非常简单的功能):

    function eBayGetSingle($ItemID){
       $URL = 'http://open.api.ebay.com/shopping';
    
       //change these two lines
       $compatabilityLevel = 967; 
       $appID = 'YOUR_APP_ID_HERE';
    
       //you can also play with these selectors
       $includeSelector = "Details,Description,TextDescription,ShippingCosts,ItemSpecifics,Variations,Compatibility";
    
    
       // Construct the GetSingleItem REST call         
       $apicall = "$URL?callname=GetSingleItem&version=$compatabilityLevel"
                . "&appid=$appID&ItemID=$ItemID"
                . "&responseencoding=XML"
                . "&IncludeSelector=$includeSelector"; 
       $xml = simplexml_load_file($apicall);
    
       if ($xml) {
         $json = json_encode($xml);
         $array = json_decode($json,TRUE);
         return $array;
       }
       return false;
    }
    

    【讨论】:

    • 这种方法现在需要一个 oauth 令牌
    猜你喜欢
    • 1970-01-01
    • 2012-10-20
    • 2014-11-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多