一段时间以来,我一直在使用 v3 API 向 Blogger 博客发布帖子。突然,今天早上我403 "Insufficient Permission"
尝试插入帖子时遇到错误。为了确保它不在我的代码中,我尝试使用API Explorer插入帖子。我使用提供的范围 ( https://www.googleapis.com/auth/blogger
) 授权了请求,并尝试插入以下帖子资源:
{
"kind": "blogger#post",
"blog": {
"id": "xxxxxxxx"
},
"title": "Test Post",
"content": "This is a test post"
}
当我尝试执行请求时,出现以下错误:
403 Forbidden
- Hide headers -
cache-control: private, max-age=0
content-encoding: gzip
content-length: 136
content-type: application/json; charset=UTF-8
date: Wed, 11 Sep 2013 18:18:21 GMT
expires: Wed, 11 Sep 2013 18:18:21 GMT
server: GSE
www-authenticate: Bearer realm="https://www.google.com/accounts/AuthSubRequest", error=insufficient_scope, scope="https://www.googleapis.com/auth/blogger"
{
"error": {
"errors": [
{
"domain": "global",
"reason": "insufficientPermissions",
"message": "Insufficient Permission"
}
],
"code": 403,
"message": "Insufficient Permission"
}
}
有谁知道为什么今天突然不起作用?谢谢!