我已请求具有范围的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调用。我想念什么吗?