您可以使用 HybridAuth 连接到 Google API 并在 Google 中注册您的应用程序/项目(HybridAuth 已经启用连接到 Google,请参阅文档以供参考)并且当您向 Google 注册项目时,您可以开始添加/启用正确的 Google API通过浏览可用的 API 列表项。您将找到一个名为 YouTube Data API v3 的 API,单击它并启用以将状态更改为 ON。
完成后,您在 Google 注册的项目将启用 YouTube API,您必须前往 Credentials 生成您的密钥。
希望它有帮助...
这是一个有用的链接,您可以通过 Google 开始使用 YouTube:
来源:https ://developers.google.com/youtube/registering_an_application
标题:通过 Google 向 YouTube 注册您的应用程序
转到 Google 开发者控制台。选择一个项目。在左侧边栏中,选择 APIs & auth。在 API 列表中,确保 YouTube 数据 API v3 的状态为开启。在左侧边栏中,选择凭据。API 支持两种类型的凭据。创建适合您项目的凭据:
OAuth 2.0: Your application must send an OAuth 2.0 token with any request that accesses private user data. Your application sends a client ID and, possibly, a client secret to obtain a token. You can generate OAuth 2.0 credentials for web applications, service accounts, or installed applications.
Learn more
API keys: A request that does not provide an OAuth 2.0 token must send an API key. The key identifies your project and provides API access, quota, and reports.
If the key type you need does not already exist, create an API key by selecting Create New Key and then selecting the appropriate key type. Then enter the additional data required for that key type.