【发布时间】:2018-06-11 18:13:38
【问题描述】:
这是我的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 识别我的 Sandbox 用户帐户。除了已经存在的内容之外,我还需要在ebay.yaml 或 GitHub 脚本中添加什么内容吗?`
我尝试过使用这两种令牌...使用 OAuth 令牌根本不起作用。所以对于这些测试,我一直在使用 Auth'n'Auth
【问题讨论】:
-
我希望你在
api.sandbox.ebay.com之前没有缩进,因为它需要不缩进并且在根级别 -
我已经清理了cmets,但实际文件中没有空格。
-
"您需要创建一个卖家账户。在您发布此商品之前,我们需要一些额外的信息来创建卖家账户。"这表明沙盒帐户未注册为卖家帐户,因此这会阻止通过此 API 进行进一步操作。
-
是的,我无法将我的沙盒帐户链接到 PayPal。我曾多次尝试在开发者论坛中提问,但均未成功。我还联系了 PayPal,看看他们是否可以提供帮助。这似乎是几个人都知道的问题。
-
您看过最近的发布了吗:developer.ebay.com/devzone/xml/docs/releasenotes.html#1061。我猜描述字段已被弃用;尝试删除它。