YouTube API 密钥由管理员创建?
是否可以生成对 Youtube 帐户具有管理员访问权限的 Youtube API 密钥?还是只有帐户所有者才能使用此功能?
Is it possible to generate a Youtube API key having admin access to the Youtube account? or is this function only possible for account owners?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
任何人都可以在 Google 云控制台上创建项目 您无需成为任何内容的管理员即可创建项目一个 API 密钥。
您应该了解,Api 密钥用于通过 YouTube api 访问公共数据。这与特定的 YouTube 帐户无关。它只会让您访问公共方法,例如 Video.Search
所有需要授权的方法 例如members.list 在其文档页面中显示它们需要授权。
YouTube api 允许的唯一授权方法是 Oauth2。有权访问该频道的人需要授权您的应用程序并同意您的应用程序代表他们访问他们的 YouTube 频道。
Anyone can create a project on Google cloud console You do not need to be an admin on anything to create an api key.
You should understand though that Api keys are used to access public data via the YouTube api. This has nothing to do with a specific YouTube account. It will just let you access the public methods like Video.Search
All methods that require authorization For example members.list show in their documentation page that they require authorization.
The only authorization method allowed for the YouTube api is Oauth2. Someone with access to the channel will need to authorize your application and grant consent that your application access their YouTube channel on their behalf.
此处的文档并未说明您可以通过管理员访问权限执行此操作仅限 YouTube 帐户。但您需要访问链接到相关 Youtube 频道的实际 Google 帐户。
如果您订阅了 Google Workspace,并且该频道的所有者是您的客户帐号之一,则您可以访问 GCP 控制台并继续执行文档中的步骤来生成密钥。
The documentation here does not state you can do it having admin access to the YouTube account only. But instead you need access to the actual Google Account linked to the Youtube Channel in question.
If you do have a Google Workspace subscription and the owner of the channel is one of your managed accounts, then you can access the GCP console and proceed with steps in the documentation to generate the key.