这是我的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中的确切文件尝试测试我的新Sandbox帐户,并且大部分功能都正常运行,但是在尝试运行VerifyAddItem函数时出现以下错误:< / p>
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'}
我已经设置了一个Sandbox帐户,让用户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识别我的Sandbox用户帐户需要做什么。除了已经存在的内容之外,我还需要在ebay.yaml
或GitHub脚本中添加一些内容吗?
我尝试过使用这两种令牌......使用OAuth令牌根本不起作用。因此,对于这些测试,我一直在使用Auth&#39; Auth
答案 0 :(得分:1)
通常,提供者有自己的论坛,最好去那里看看。
请查看here。添加商品时,退货政策似乎有问题。最后的评论说它已经工作了很长时间,但是现在已经坏了。在[这里] [2]中,您可以说说可能要花费的时间。那就是测试环境。
很久以前,我一直试图与他们集成,但由于这种问题,我决定不这样做。我将尝试刷新我的测试,但我不希望从中获得太多输入。