简体   繁体   English

oAuth with PHP(适用于谷歌api)

[英]oAuth with PHP (for google api)

How to use oAuth with PHP ? 如何在PHP中使用oAuth? I can't install oauth class with pecl because I'm using share hosting. 我无法使用pecl安装oauth类,因为我正在使用共享托管。

I found 我发现

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

but there is no example for client. 但客户没有例子。 I want to use oauth for Google API. 我想将oauth用于Google API。

Here is your example: http://code.google.com/p/oauth-php/wiki/ConsumerHowTo 以下是您的示例: http//code.google.com/p/oauth-php/wiki/ConsumerHowTo

You can also read through http://code.google.com/apis/gdata/docs/auth/oauth.html to find out the specifics on Google. 您还可以通过http://code.google.com/apis/gdata/docs/auth/oauth.html阅读以了解Google的具体信息。

我得到了它,我在http://googlecodesamples.com/oauth_playground/(svn 源代码 )上开发自己的客户端库

There are plenty of libraries available for PHP. 有很多可用于PHP的库。 Check out the list on http://oauth.net/code/ 查看http://oauth.net/code/上的列表

I guess you mean this offical library: 我想你的意思是这个官方图书馆:

Offical API Library 官方API库

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM