这就是我用来向youtube添加评论的内容:
gapi.client.youtube.commentThreads.insert({
part: "snippet", commentData
}).then(function (response) {
console.log("response", response);
})
这就是即时通讯:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "insufficientPermissions",
"message": "Insufficient Permission: Request had insufficient authentication scopes."
}
],
"code": 403,
"message": "Insufficient Permission: Request had insufficient authentication scopes."
}
}
权限不足:请求的身份验证范围不足。
表示当前经过身份验证的用户未授予您执行此操作的权限。
如果您查看文档comments.insert,您将看到为了使用此方法,您必须使用https://www.googleapis.com/auth/youtube.force-ssl
范围对您的用户进行认证