私は現在のリスティングの価格と数量を追跡できるように、getmyebaysellingリクエストを作成しようとしています。eBay Trading API XMLレスポンス
文書とサンプルに続いてhereトークンを生成し、現在のリスティングを見るためにプロダクションXMLにリクエストを送信しようとしました。
現在の試行:
endpoint = "https://api.ebay.com/ws/api.dll"
xml = """<?xml version="1.0" encoding="utf-8"?>
<GetMyeBaySellingRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken>AgAAAA*...full auth token here...wIAYMEFWl</eBayAuthToken>
</RequesterCredentials>
<Version>967</Version>
<ActiveList>
<Sort>TimeLeft</Sort>
<Pagination>
<EntriesPerPage>3</EntriesPerPage>
<PageNumber>1</PageNumber>
</Pagination>
</ActiveList>
</GetMyeBaySellingRequest>"""
headers = {'Content-Type': 'application/xml'}
response = requests.post(endpoint, data=xml, headers=headers)
print response
print response.content
応答:
<?xml version="1.0" encoding="UTF-8" ?><GeteBayOfficialTimeResponse xmlns="urn:ebay:apis:eBLBaseComponents"><Timestamp>2017-04-17 13:01:25</Timestamp><Ack>Failure</Ack><Errors><ShortMessage>Unsupported API call.</ShortMessage><LongMessage>The API call "GeteBayOfficialTime" is invalid or not supported in this release.</LongMessage><ErrorCode>2</ErrorCode><SeverityCode>Error</SeverityCode><ErrorClassification>RequestError</ErrorClassification></Errors><Build>18007282</Build></GeteBayOfficialTimeResponse>
その応答の有用な部分:
The API call "GeteBayOfficialTime" is invalid or not supported in this release.
私はここで自分のドキュメントのサンプルから働いています。私が実際に見ることができる時間への唯一のリンクは伸びたが、それでも同じ応答を得る<Sort>TimeLeft</Sort>
だった。
私は、さまざまなPythonライブラリを使って、多くのドキュメントなしでgetmyebaysellingリクエストを処理しようとしていました。さて、eBayからのドキュメントを読んで、私は水中でかなり死んでいるように感じています。誰かが正しい方向に私を振ることができるなら、私はそれを感謝します。次は何を試していいのか分かりません。