0
我正在爲一個課程製作ecom網站,而且我試圖將其全部綁定到我的eBay帳戶中。真的不是eBay API的粉絲。我使用他們的測試工具:無法獲得eBay身份驗證令牌上班
頭:
X-EBAY-API-SITEID:0
X-EBAY-API-COMPATIBILITY-LEVEL:967
X-EBAY-API-CALL-NAME:GetSellerList
X-EBAY-API-DEV-NAME:.........
X-EBAY-API-APP-NAME:........
X-EBAY-API-CERT-NAME:.........
,並請求代碼:
<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>[I enter my 872 char auth key here...]</eBayAuthToken>
</RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<!--You can use DetailLevel or GranularityLevel in a request, but not both-->
<GranularityLevel>Fine</GranularityLevel>
<!-- Enter a valid Time range to get the Items listed using this format
2013-03-21T06:38:48.420Z -->
<StartTimeFrom>2016-03-21T06:38:48.420Z</StartTimeFrom>
<StartTimeTo>2016-08-01T06:38:48.420Z</StartTimeTo>
<IncludeWatchCount>true</IncludeWatchCount>
<Pagination>
<EntriesPerPage>200</EntriesPerPage>
</Pagination>
</GetSellerListRequest>
我的回答:
<?xml version="1.0" encoding="UTF-8"?>
<GetSellerListResponse
xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2016-08-02T03:21:44.330Z</Timestamp>
<Ack>Failure</Ack>
<Errors>
<ShortMessage>Auth token is invalid.</ShortMessage>
<LongMessage>Validation of the authentication token in API request failed.</LongMessage>
<ErrorCode>931</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
<Version>967</Version>
<Build>E967_CORE_APISELLING_17965876_R1</Build>
</GetSellerListResponse>
我在做什麼錯?
在測試工具,我有選擇的生產和正在使用的生產AUTH關鍵.....