Python 如何在ebaysdk上导入产品API?

Python 如何在ebaysdk上导入产品API?,python,ebay-api,Python,Ebay Api,我试图通过使用UPC查找产品的信息(描述、标题、图像、方面,以及基本上所有内容)。我通过使用易趣的交易API(GetItem)和productID成功地做到了这一点。然而,当我尝试使用UPC时,我遇到了一些问题。网上没有多少说明。我找到了这个函数,它应该可以回答我的问题: 这是我的代码: from ebaysdk.trading import Connection api = Connection(devid=dev_id, certid=cert_id, appid=app_id, token

我试图通过使用UPC查找产品的信息(描述、标题、图像、方面,以及基本上所有内容)。我通过使用易趣的交易API(GetItem)和productID成功地做到了这一点。然而,当我尝试使用UPC时,我遇到了一些问题。网上没有多少说明。我找到了这个函数,它应该可以回答我的问题:

这是我的代码:

from ebaysdk.trading import Connection
api = Connection(devid=dev_id, certid=cert_id, appid=app_id, token=token_id, globalId="EBAY-US", config_file=None) 
response = api.execute('getProductDetails', {"productDetailsRequest": {"dataset": {"UPC": "#UPCNUMBER"}}})
r = response.dict()
print(r)
但是,当我尝试使用相同的API(交易)时,我遇到了以下错误:

ConnectionError: 'getProductDetails: Class: RequestError, Severity: Error, Code: 2, Unsupported API call. The API call "getProductDetails" is invalid or not supported in this release.'
我试图了解我应该使用什么样的API,但互联网上没有任何信息。从文档中,我可以理解这是一个产品API。但是,当查看不同的
ebaysdk.xxx
子模块时,我没有看到任何适合的子模块

有人知道这件事吗