如何获得只读 Youtube API 访问权限 [英] How to get Read-only Youtube API access

查看:35
本文介绍了如何获得只读 Youtube API 访问权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于 YouTube API,文档的唯一范围是 http://gdata.youtube.com,其中要求用户授予完全读/写访问权限.是否有一个范围要求/授予只读权限或仅读取 Youtube Insight 数据的权限?

解决方案

YouTube 数据 API 的 v3

a> 现在支持只读范围:https://www.googleapis.com/auth/youtube.readonly

不过,使用该范围获得的令牌不适用于 API 的旧版 v1/v2.您只能将它们用于 v3 调用.

For YouTube APIs, the only scope that is document is http://gdata.youtube.com, which asks the user to grand full read/write access. Is there a scope that asks/grants read-only permissions OR just read permissions to Youtube Insight data?

解决方案

v3 of the YouTube Data API now has support for a read-only scope: https://www.googleapis.com/auth/youtube.readonly

Tokens obtained with that scope won't work with the older v1/v2 of the API, though. You can only use them with v3 calls.

这篇关于如何获得只读 Youtube API 访问权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆