在哪里可以找到 youtube API 密钥? [英] Where to find the youtube API Key?

查看:161
本文介绍了在哪里可以找到 youtube API 密钥?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遵循了所有步骤.我选择了我想要的 API(YouTube 数据 API)并创建了一个项目.我现在搜索了大约 20 分钟,但找不到 API 密钥?我的用户界面是德文的,是否有可能以 API 密钥以外的其他名称命名?也许是 Clientschlüssel(客户端密钥)?

I followed all the steps. I selected my desired API (YouTube Data API) and created a project. I am searching now for about 20 minutes but I can't find the API Key? My user interface is in german, is it possible that it is named to something else than API Key? Maybe Clientschlüssel (Client Key) ?

这就是我发现的:

还有一个 JSON 对象,但没有 API Key:

There is also a JSON object, but no API Key:

var myInfos = {
    "web":{
        "client_id":"censored",
        "project_id":"censored",
        "auth_uri":"https://accounts.google.com/o/oauth2/auth",
        "token_uri":"https://accounts.google.com/o/oauth2/token",
        "auth_provider_x509_cert_url":"censored",
        "client_secret":"censored",
        "redirect_uris":["https://localhost/ex/YouTube/index.html"],
        "javascript_origins":["http://localhost"]
    }
}

推荐答案

只是再次浏览一遍以确保您已正确完成.

Just to walk through this again to make sure you have done it properly.

  1. 确保您拥有 Google 帐户.
  2. 登录开发者控制台:https://console.developers.google.com/
  3. 创建项目
  4. 然后,选择 YouTube 数据 API
  5. 点击屏幕右侧的创建凭据.
  6. 选择调用 API 的位置
  7. 选择公开或用户.
  8. 获取您的 API 密钥.

可选:限制您的密钥.

我只是走过这一切,并自己得到了一把钥匙.

I just walked though all of this and have been given a key myself.

这篇关于在哪里可以找到 youtube API 密钥?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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