YouTube 数据 API:上传我的视频时选择目标 YT 频道 [英] YouTube Data API: Choosing the destination YT channel when uploading my video

查看:35
本文介绍了YouTube 数据 API:上传我的视频时选择目标 YT 频道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照此处说明的步骤操作:https://developers.google.com/youtube/v3/guides/uploading_a_video 以便使用他们的脚本在我的频道上传视频.

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.

问题是我的 GMail 帐户与两个 YouTube 频道相关联:我的个人频道是默认的 YT 频道,另一个是我今天早上创建的新频道.后者是我视频的理想目标频道.

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.

如何告诉 YouTube 数据 API 将视频上传到此频道而不是默认频道?我在控制台 APIYouTube 数据 API"中没有看到任何有用的东西,在上传脚本的技术文档(上面给出)中也没有看到任何有用的东西.

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).

推荐答案

作为 OAuth 2.0 身份验证/授权流程的一部分,您将在浏览器中看到选择您的应用程序的帐户的选项给定访问权限.

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.

在使用脚本之前,您可以在 Google Developers OAuth 的帮助下练习此行为2.0 游乐场.

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

OAuth 流程成功后,您可以在 帐户的权限页面.

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

这篇关于YouTube 数据 API:上传我的视频时选择目标 YT 频道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆