易趣 errorId 1100: "Insufficient permissions to fulfill the request"
eBay errorId 1100: "Insufficient permissions to fulfill the request"
我已请求具有以下范围的 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."
}]}
...但我希望状态 return“200 OK”。我知道这个 curl
调用在做类似的事情时有效
curl -H "Authorization: Bearer myOAuthToken" https://api.ebay.com/buy/browse/v1/item_summary/search?q=myQuery
所以我唯一能想到的就是范围,但除非我弄错了范围适合 getPrivileges 调用。我错过了什么吗?
正如在 this post 中发现的那样,有一个特殊的子句,此调用需要一个令牌,该令牌是通过授权代码授予流程专门生成的。我没有直接从我的用户令牌页面生成 OAuth,而是浏览了授权流程并生成了一个令牌并且它有效。
我已请求具有以下范围的 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."
}]}
...但我希望状态 return“200 OK”。我知道这个 curl
调用在做类似的事情时有效
curl -H "Authorization: Bearer myOAuthToken" https://api.ebay.com/buy/browse/v1/item_summary/search?q=myQuery
所以我唯一能想到的就是范围,但除非我弄错了范围适合 getPrivileges 调用。我错过了什么吗?
正如在 this post 中发现的那样,有一个特殊的子句,此调用需要一个令牌,该令牌是通过授权代码授予流程专门生成的。我没有直接从我的用户令牌页面生成 OAuth,而是浏览了授权流程并生成了一个令牌并且它有效。