【问题标题】:oAuth with PHP (for google api)oAuth 与 PHP(用于 google api)
【发布时间】:2010-01-18 05:40:08
【问题描述】:

如何在 PHP 中使用 oAuth?我无法使用 pecl 安装 oauth 类,因为我使用的是共享托管。

我找到了

http://code.google.com/p/oauth-php/

但是没有客户的例子。我想为 Google API 使用 oauth。

【问题讨论】:

  • 整个页面都有指向示例的链接。如果你用谷歌搜索“google api oauth”,你会得到更多。

标签: php oauth


【解决方案1】:

这是您的示例:http://code.google.com/p/oauth-php/wiki/ConsumerHowTo

您也可以通读http://code.google.com/apis/gdata/docs/auth/oauth.html,在 Google 上了解详情。

【讨论】:

  • 这是 oauth1 而不是 oauth2
【解决方案2】:

我知道了,我基于http://googlecodesamples.com/oauth_playground/ (svn sourcecode) 开发了我自己的客户端库

【讨论】:

    【解决方案3】:

    有很多可用于 PHP 的库。查看http://oauth.net/code/上的列表

    【讨论】:

      【解决方案4】:
      【解决方案5】:

      我猜你的意思是这个官方图书馆:

      Offical API Library

      【讨论】:

        猜你喜欢
        • 2018-05-03
        • 1970-01-01
        • 2012-09-13
        • 2017-12-21
        • 1970-01-01
        • 2018-04-28
        • 1970-01-01
        • 1970-01-01
        • 2015-11-08
        相关资源
        最近更新 更多