【发布时间】:2020-04-07 19:17:25
【问题描述】:
我已请求具有范围的 OAuth 令牌:
-
https://api.ebay.com/oauth/api_scope/sell.account.readonly和 https://api.ebay.com/oauth/api_scope/sell.account
我生成了一个新的 OAuth 应用程序令牌用于生产,并尝试像这样运行getPrivileges:
curl -H "Authorization: Bearer myOAuthToken" https://api.ebay.com/oauth/api_scope/sell.account
输出是错误信息:
{"errors":[{
"errorId":1100,
"domain":"ACCESS",
"category":"REQUEST",
"message":"Access denied",
"longMessage":"Insufficient permissions to fulfill the request."
}]}
...但我希望状态返回“200 OK”。我知道这个curl 电话在做类似的事情时有效
curl -H "Authorization: Bearer myOAuthToken" https://api.ebay.com/buy/browse/v1/item_summary/search?q=myQuery
所以我唯一能想到的是范围,但除非我弄错了范围适用于 getPrivileges 调用。我错过了什么吗?
【问题讨论】: