【问题标题】:Uploading Video to Youtube channel with HybridAuth and PHP使用 HybridAuth 和 PHP 将视频上传到 Youtube 频道
【发布时间】:2013-02-10 18:00:51
【问题描述】:

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

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

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

【问题讨论】:

  • 感谢@maroun 的编辑

标签: php youtube-api hybridauth


【解决方案1】:

不,您不能在 Youtube 上使用它,但可以在 Vimeo 上使用它。

【讨论】:

    【解决方案2】:

    您可以使用 HybridAuth 连接到 Google API 并在 Google 中注册您的应用程序/项目(HybridAuth 已经启用连接到 Google,请参阅文档以供参考)并且当您向 Google 注册项目时,您可以开始添加/启用通过浏览可用的 API 列表项来访问 Google 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.
    

    【讨论】:

      猜你喜欢
      • 2015-01-10
      • 2012-12-23
      • 2013-02-03
      • 2014-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-06
      • 1970-01-01
      相关资源
      最近更新 更多