0

我想授予应用程序使用 HybridAuth ( http://hybridauth.sourceforge.net/ ) 和 PHP 将视频发布到我的 youtube 频道的权限。

  1. 第一个问题可能吗?
    我已经可以对 facebook、linkedin 和 twitter 进行身份验证和授予权限。我可以将状态发布到这些网络。还没有尝试连接到谷歌,但应该很容易添加,我假设我只需要谷歌身份验证就可以访问 Youtube?

  2. HybridAuth 的哪一部分可以用来上传视频?有没有我可以用来学习的示例应用程序?有人做过吗?

4

2 回答 2

0

您可以使用 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.
于 2014-12-07T16:47:18.097 回答
0

不,您不能将它与 Youtube 一起使用,但可以与 Vimeo 一起使用。

于 2013-10-04T14:17:37.580 回答