How to get Read-only Youtube API access

2019-07-20 23:47发布

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?

标签: youtube-api
3条回答
Juvenile、少年°
2楼-- · 2019-07-20 23:55

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.

查看更多
做个烂人
3楼-- · 2019-07-20 23:55

Found out from one of the YouTube API guys (4/16/12):

"It's not possible with the current API, unfortunately. There's just a single scope that grants full read/write access to the account. This is a valid request, though, and I'll pass it along to the engineering team. I can't make any promises about whether it will be implemented, though."

查看更多
Luminary・发光体
4楼-- · 2019-07-20 23:56

The read-only analytics permission (https://www.googleapis.com/auth/analytics.readonly) used to work under v2 as well and it's even in the docs: https://developers.google.com/analytics/devguides/reporting/core/v2/gdataAuthentication

However it doesn't work now and Google doesn't look very motivated to fix it: http://code.google.com/p/gdata-issues/issues/detail?id=3916

查看更多
登录 后发表回答