2016-08-02 9 views
0

私はクラスのecomウェブサイトを作っています。私はeBayアカウントにすべてを結びつけようとしています。 eBayのAPIのファンではありません。私は彼らのテストツールを使用しています:eBay authトークンが動作しない

ヘッダー:

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> 

は私が間違って何をやっているの?

私は本番選択したテストツールで

、最初からこれを実行する必要はありません.....

答えて

0

を生産認証キーを使用しています。すでにPHPを使用して何千ものeBayに統合されています。エラー処理を簡素化し、組み込んだ多くの既製のSDKがあります。ここには現在メンテナンスされている人気のあるものがあります。

https://github.com/davidtsadler/ebay-sdk-php