尝试了多种选项来获取用于连接 Ebay Rest API 的应用程序令牌。
在调用 eBay API 时生成令牌或权限问题时最终出现问题。
尝试1:
grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.inventory https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.account https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.fulfillment https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.finances https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.item.draft https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.payment.dispute https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.item https:%3A%2F%2api.sandbox.ebay.com%2oauth%2api_scope%2sell.reputation
尝试2:
grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope https:%3A%2F%2api.ebay.com%2oauth%2api_scope%2sell.inventory https:%3A%2F%2api.ebay.com%2oauth%2api_scope%2sell.account https:%3A%2F%2api.ebay.com%2oauth%2api_scope%2sell.fulfillment
所有三种方法都给出了令牌,但在 createOrReplaceInventoryItem API 时失败,下面是响应
Reason: {"errors":[{"errorId":1100,"domain":"ACCESS","category":"REQUEST","message":"Access denied","longMessage":"Insufficient permissions to fulfill the request."}]}
尝试3:
grant_type=client_credentials&scope=https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.inventory https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.account https%3A%2F%2Fapi.ebay.com%2Foauth%2Fapi_scope%2Fsell.fulfillment
无法获取访问令牌并显示以下消息。
{"error":"invalid_scope","error_description":"The requested scope is invalid, unknown, malformed, or exceeds the scope granted to the client"}
这个问题解决了吗,我也有同样的问题,但是不知道怎么解决