这是我的
我正在使用https://github.com/timotheus/ebaysdk-python/blob/master/samples/trading.py中的确切文件尝试测试我的新沙盒账户,大部分功能都成功了,但是在尝试运行VerifyAddItem函数时出现以下错误:
ebay.yaml
文件的内容:name: ebay_api_config
# Trading API Sandbox - https://www.x.com/developers/ebay/products/trading-api
api.sandbox.ebay.com:
compatability: 719
appid: XXXXXXXXXX
certid: XXXXXXXXXX
devid: XXXXXXXXXXX
token: XXXXXXXXXXX
我正在使用https://github.com/timotheus/ebaysdk-python/blob/master/samples/trading.py中的确切文件尝试测试我的新沙盒账户,大部分功能都成功了,但是在尝试运行VerifyAddItem函数时出现以下错误:
Call Success: 4670 in length
Response code: 200
Response DOM1: <DOM Element: GetFeedbackResponse at 0x101281170>
Response ETREE: <Element GetFeedbackResponse at 0x10124d050>
Response dictionary: {'FeedbackScore': '0', 'Ack': 'Success', 'Timestamp': '2018-06-11T18:09:11.892Z', 'Version': '1003', 'FeedbackSummary': {'NegativeFeedbackPeriodArray'...
Response Reply: {'FeedbackScore': '0', 'Ack': 'Success', 'Timestamp': datetime.datetime(2018, 6, 11, 18, 9, 11), 'Version': '1003', 'FeedbackSummary': {'NegativeFeedb
Sell more, buy more..
u"VerifyAddItem: Class: RequestError, Severity: Error, Code: 120, You need to create a seller's account. Before you can list this item we need some additional information to create a seller's account."
{'Ack': 'Failure', 'Timestamp': '2018-06-11T18:09:13.751Z', 'Errors': [{'SeverityCode': 'Warning', 'ErrorClassification': 'RequestError', 'ErrorCode': '21920200', 'LongMessage': 'Return Policy Attribute returnDescription Not Valid On This Site', 'ErrorParameters': {'_ParamID': '0', 'Value': 'returnDescription'}, 'ShortMessage': 'Return Policy Attribute Not Valid'}, {'ErrorCode': '21919158', 'LongMessage': "The email address you entered isn't linked to a PayPal account. If you don't have a PayPal account, you'll need to set one up with this address so that buyers can pay you. (You can set up your account after your item sells).", 'ErrorClassification': 'RequestError', 'SeverityCode': 'Warning', 'ShortMessage': 'Invalid PayPal email address.'}, {'ErrorCode': '120', 'LongMessage': "Before you can list this item we need some additional information to create a seller's account.", 'ErrorClassification': 'RequestError', 'SeverityCode': 'Error', 'ShortMessage': "You need to create a seller's account."}], 'Version': '1061', 'Build': 'E1061_UNI_API5_18724070_R1'}
我已经建立了一个沙盒账户,并创建了名为testuser_XXXXX且设置了有效密码的用户。而且我成功地收到了GetTokenStatusResponse函数的响应。
Call Success: 449 in length
Response code: 200
Response DOM1: <DOM Element: GetTokenStatusResponse at 0x1012dc320>
Response ETREE: <Element GetTokenStatusResponse at 0x1012d7bd8>
Response dictionary: {'Ack': 'Success', 'Timestamp': '2018-06-11T18:09:14.347Z', 'Version': '1031', 'Build': 'E1031_CORE_APISIGNIN_18564253_R1', 'TokenStatus': {'Status': ...
Response Reply: {'Ack': 'Success', 'Timestamp': datetime.datetime(2018, 6, 11, 18, 9, 14), 'Version': '1031', 'Build': 'E1031_CORE_APISIGNIN_18564253_R1', 'TokenStatu
我不确定我需要做什么来让SDK识别我的沙盒用户账户。除了已经存在的内容,我是否需要在ebay.yaml
或GitHub脚本中添加其他内容?
我尝试过使用两种类型的token……使用OAuth token完全不起作用。因此,在进行这些测试时,我一直在使用Auth'n'Auth。
api.sandbox.ebay.com
之前没有缩进,因为它需要在根级别上非缩进。 - Tarun Lalwani