I was able to replicate this problem in the OAuth 2.0 Playground by authenticating with an account that doesn't have a YouTube channel/username, and calling the Get User method (https://gdata.youtube.com/feeds/api/users/default).
标签:
youtube-api
相关问题
- YouTube API refresh token revoked with 400 code “i
- YouTube Data API v3 allowed referers for browser a
- Auto Upload of Videos to my account, using youtube
- handling errors in youtube data api in javascript
- YouTube API v3.0: How do you determine if a video
相关文章
- How to get the last 24 hours worth of videos from
- How can I get a list of the most viewed Youtube vi
- YouTube API 3 GET last videos from specific User
- youtube-upload runs from terminal but not cron cal
- Our application uploads hundreds of videos per day
- Youtube iframe api check if video exists
- Play YouTube playlist automatically
- Can I schedule YouTube videos for release via the
It is possible to have a YouTube account without having a YouTube channel (i.e. having a YouTube username). Google calls this an unlinked account.
Some methods defined in version 2.0 of the YouTube API will throw 401 Unauthorized errors if you call them on an unlinked account. It turns out that there is a relatively undocumented version of the YouTube API (version 2.1) that enables functionality for unlinked accounts.
More info: http://apiblog.youtube.com/2011/10/introducing-google-account-support-and.html
I was able to fix the error in the OAuth 2.0 Playground by simply changing the version header from
GData-Version: 2.0
toGData-Version: 2.1
.