YouTube Video Upload API

I have finished uploading videos to YouTube from my site, which is only for a specific user account (this means that all videos are uploaded to the same user account). Now I want this user to come to my site, enter your YouTube username and password, and the selected video will be uploaded to their account.

So far, what I have done is, I uploaded the video to my account using my developer key. But now I want that if a user uploads a video to YouTube, he uploads to his account. I can’t find out, because it’s possible that they don’t have the developer key to download. Therefore, I need help with this.

I saw the API, but I can not help with this. Can anyone help me with this?

Thanks!

+4
source share
2 answers

It would be helpful if you were more specific about what you are asking.

This is the youtube video download API: http://code.google.com/apis/youtube/2.0/developers_guide_protocol_uploading_videos.html

+1
source

You need to use the OAuth 2.0 API described here: https://developers.google.com/youtube/2.0/developers_guide_protocol_oauth2 to get the credentials you need. Using the credentials you create a link to the Google authorization service that your customers follow. On this page, they can allow or deny access to their YouTube account to your service. Assuming permission is granted, the service will be redirected to the “callback” URL that you provided with the pair of access tokens. You can then use these markers to upload videos to YouTube and the videos will appear in the client’s account since they uploaded them.

+3
source

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


All Articles