Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Youtube API: Upload to developer's account

Tags:

youtube

oauth

api

here's what I want to achieve:

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

Here's what I don't get:

This is possible using the deprecated ClientLogin authentication. But it is not using OAuth 2.0 authentication, because this one's logging the user always in to his own account, not mine. Correct? If not, how do I use the OAuth authentication to enable users to upload videos to my youtube account?

Thank you for your help!

like image 507
user1713862 Avatar asked Oct 02 '12 08:10

user1713862


People also ask

How much video can I upload on YouTube using API?

Uploads a video to YouTube and optionally sets the video's metadata. This method supports media upload. Uploaded files must conform to these constraints: Maximum file size: 256GB.

Can I use YouTube API in my app?

YouTube Android Player API lets you play any YouTube video or playlist inside your app that too without leaving your app.

Can you still use YouTube API v2?

What should I do? You can continue using the v2 API for comments and uploading video captions for now, and we'll be adding this functionality into the v3 API soon. While we don't have specific dates yet, we will release that functionality so that developers have as much time as possible to migrate to v3.


1 Answers

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

This error is commonly seen if you try to use the OAuth 2.0 Service Account flow. YouTube does not support Service Accounts, and if you attempt to authenticate using a Service Account, you will get this error.

like image 83
Bil1 Avatar answered Oct 22 '22 19:10

Bil1