Youtube API: upload to developer account

this is what i want to achieve:

Users can upload videos to my youtube account via a simple web form.

Here is what I will not get:

This is possible using legacy ClientLogin authentication. But he does not use OAuth 2.0 authentication, because he always registers the user at his own expense, and not at mine. Right? If not, how to use OAuth authentication so that users can upload videos to my YouTube account?

Thanks for the help!

+6
source share
4 answers

Google OAuth2 authorization server supports the use of service accounts . They are designed specifically for this use case. This should also work for the Youtube API.

You can create a service account in the Google APIs console . There you will receive the email address of the service account, which you must set as an alternative email address for the Google account that you use for your Youtube videos.

+1
source

OAuth2 service accounts do not work for Youtube API: https://developers.google.com/youtube/v3/docs/errors

This error is usually observed if you are trying to use the OAuth 2.0 Stream account service. YouTube does not support service accounts, and if you attempt to authenticate using a service account, you will receive this error.

+4
source

If this question is still https://code.google.com/p/gdata-issues/issues/detail?id=5370 UNRESOLVED it is not possible to use a service account with the v3 data API for YouTube. As of March 2014, I cannot create / list a new playlist or post a video in an existing playlist. The Google people must REALLY make this explicit, as I spend several hours on it.

+4
source

Does Jan Gerlinger respond to work? I also get a message that the email address is already associated with another Google account. I think this is not possible with v3, but is it possible to do this with v2?

0
source

Source: https://habr.com/ru/post/926734/


All Articles