我的访问令牌是验证并可以使用它来列出实时广播,但是当我多次插入直播时,返回错误如下,
{
"error": {
"errors": [
{
"domain": "youtube.liveBroadcast",
"reason": "insufficientLivePermissions",
"message": "Request is not authorized",
"extendedHelp": "https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/insert#auth_required"
}
],
"code": 403,
"message": "Request is not authorized"
}
}
测试流程 通过Google客户端API(NodeJS)获取新的访问令牌 列出LiveBroadcasts,成功获得结果 插入单个LiveBroadcasts,成功插入 再次插入单个LiveBroadcast,成功插入 使用多个插入5个LiveBroadcast,获取错误
{ domain: 'youtube.liveBroadcast',
reason: 'insufficientLivePermissions',
message: 'Request is not authorized',
extendedHelp: 'https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/insert#auth_required' }
再次列出LiveBroadcasts,成功获得结果 插入单个LiveBroadcast,获取错误(403请求未被授权) 使用YouTube直播API演示页,插入直播,获取错误(403请求未经授权)
问题: 我有验证访问令牌并且可以成功执行List LiveBroadcasts,但为什么在插入LiveBroadcasts时出错? 我已经检查了API配额,这已经足够了 我检查过client_secret,这是正确的 我检查了访问令牌,它是验证 YouTube直播API是否有新的限制或约束?