"响应数据对象"对象没有属性"Ack"



所以我是Python和ebayAPI的新手。我正在尝试使用GetItem,但在给定的每个id中都会出现相同的错误,下面是代码:

from ebaysdk.shopping import Connection as Shopping
shopping_api = Shopping(appid='my_api_key', config_file=None)
get_item = shopping_api.execute('GetItem', {'ItemID': '134215887669'})
print(get_item)
Traceback (most recent call last):
File "C:UsersUserIdeaProjectsPython3HelloWorldebay_apigg.py", line 3, in <module>
get_item = shopping_api.execute('GetItem', {'ItemID': '134215887669'})
File "C:UsersUserIdeaProjectsPython3.10ebay_apilibsite-packagesebaysdkconnection.py", line 127, in execute
self.error_check()
File "C:UsersUserIdeaProjectsPython3.10ebay_apilibsite-packagesebaysdkconnection.py", line 219, in error_check
estr = self.error()
File "C:UsersUserIdeaProjectsPython3.10ebay_apilibsite-packagesebaysdkconnection.py", line 335, in error
error_array.extend(self._get_resp_body_errors())
File "C:UsersUserIdeaProjectsPython3.10ebay_apilibsite-packagesebaysdkshopping__init__.py", line 249, in _get_resp_body_errors
if self.response.reply.Ack == 'Failure':
AttributeError: 'ResponseDataObject' object has no attribute 'Ack'

GetItem是Trading API的一部分,而不是Shopping API家族的一部分因此,它有不同的规则、负载、身份验证方法和端点。

相关内容

  • 没有找到相关文章

最新更新