YouTube Data API: Choosing the destination YT channel when uploading my video

萝らか妹 提交于 2021-01-29 12:35:45

问题


I've followed the steps explained here: https://developers.google.com/youtube/v3/guides/uploading_a_video in order to use their script to upload a video on my channel.

The problem is that my GMail account is associated to two YouTube channels: my personal one which is its default YT channel, and a new one that I've created this morning. The latter is the good destination channel for my videos.

How can I tell the YouTube Data API to upload the video to this channel and not the default one? I didn't see anything useful in the Console API "YouTube Data API", nore in the technical documentation of the upload script (given above).


回答1:


As part of the OAuth 2.0 authentication/authorization flow, you will be presented, within the browser, with the option of selecting to which account your app is to be given access rights.

You may well exercise this behavior, prior to making use of your script, with the help of Google Developers OAuth 2.0 Playground.

Upon a successful OAuth flow, you may verify (and also revoke) the permissions granted by your account on the account's permissions page.



来源:https://stackoverflow.com/questions/63671471/youtube-data-api-choosing-the-destination-yt-channel-when-uploading-my-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!