【发布时间】: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?我无法使用 pecl 安装 oauth 类,因为我使用的是共享托管。
我找到了
http://code.google.com/p/oauth-php/
但是没有客户的例子。我想为 Google API 使用 oauth。
【问题讨论】:
这是您的示例:http://code.google.com/p/oauth-php/wiki/ConsumerHowTo
您也可以通读http://code.google.com/apis/gdata/docs/auth/oauth.html,在 Google 上了解详情。
【讨论】:
我知道了,我基于http://googlecodesamples.com/oauth_playground/ (svn sourcecode) 开发了我自己的客户端库
【讨论】:
有很多可用于 PHP 的库。查看http://oauth.net/code/上的列表
【讨论】:
我猜你的意思是这个官方图书馆:
【讨论】: