【发布时间】:2021-10-16 14:04:10
【问题描述】:
我已启用 Youtube Api 并在 Cloud Console 中的 oAuth 同意屏幕中添加了 Scopes,它在任何人都可以解决此问题之前运行
{
I/flutter (21147): "error": {
I/flutter (21147): "code": 403,
I/flutter (21147): "message": "Request had insufficient authentication scopes.",
I/flutter (21147): "errors": [
I/flutter (21147): {
I/flutter (21147): "message": "Insufficient Permission",
I/flutter (21147): "domain": "global",
I/flutter (21147): "reason": "insufficientPermissions"
I/flutter (21147): }
I/flutter (21147): ],
I/flutter (21147): "status": "PERMISSION_DENIED"
I/flutter (21147): }
I/flutter (21147): }
【问题讨论】:
-
欢迎来到 Stackoverflow!请花时间吸收SO's recommendations 发给新用户的内容。您可以拨打tour;然后阅读what's on-topic here 并提供minimal reproducible example。
-
顺便说一句,将您的帖子链接到 Ibrahim Ulukaya 的个人资料有什么意义?
-
@AdarshSingh 请记住在堆栈溢出时只使用英语。
-
@DaImTo 我很难将流的状态更改为测试和直播,因为我没有访问令牌。它会在 3600 秒内过期,只有你知道有什么方法可以让它保持活力'不要使用静默登录或登录
-
访问令牌在一个小时后过期,您需要使用刷新令牌来请求新的访问令牌。
标签: oauth youtube-api google-oauth youtube-data-api