YouTube API v3 receives all channels associated with a registered user

Can I get all the channels associated with a registered user account using the youtube version 3 API ( https://developers.google.com/apis-explorer/#p/youtube/v3/ ).

The closest call I see for YouTube.channels.list

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list

I am trying to use this by "Authorizing requests using OAuth 2.0." I choose part = snippet and my = true

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=snippet&mine=true&_h=1&

but this only returns one channel, not any other channel associated with the account, but the account I use has several channels. I need to get all the channels for logging in so that I can give them a choice of which channel they use, especially now Google has confused YouTube with Google plus integration.

Does anyone know if this is possible?

+7
youtube-api youtube-data-api
source share
2 answers

Found answer on YouTube API Blog here:

http://apiblog.youtube.com/2013/06/google-page-identities-and-youtube-api.html Accordingly, since I use Android with OAuth2, there is no active Android account switch and

then the API in some cases will select the β€œwrong” channel, or even without a channel (for example, if a personal account does not have a channel).

So, I have two options. When this happens, the user has two options to specify the correct channel:

  • Use the Advanced Account Settings tool to select which channel should be used. This is recommended when the user has one channel that they want to use for all applications.

  • Set up credentials for each of your Google+ pages and specify these> credentials, not their regular Google account credentials for each application that needs access.

Both of these options require the user to do something outside the Android application, so both solutions cannot be used. Unfortunately, this functionality will have to wait until Android has a better way to switch channels for the user ...

+3
source share

OAuth2 allows you to log in with only one channel, so this is not possible.

OAuth2 already gives the user the ability to select the channel that they want to allow and provide access, so you do not need to implement it.

+4
source share

All Articles