开发者

oAuth with PHP (for google api)

开发者 https://www.devze.com 2022-12-17 10:53 出处:网络
How to use oAuth with PHP ? I can\'t ins开发者_JAVA技巧tall oauth class with pecl because I\'m using share hosting.

How to use oAuth with PHP ? I can't ins开发者_JAVA技巧tall oauth class with pecl because I'm using share hosting.

I found

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

but there is no example for client. I want to use oauth for Google API.


Here is your example: 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.


I got it and I develop my own client library base on http://googlecodesamples.com/oauth_playground/ (svn sourcecode)


There are plenty of libraries available for PHP. Check out the list on http://oauth.net/code/


You should probably have a look at: http://www.dhruvb.com/blog/content/tutorial-using-oauth-google-plus-api

Also, the code samples are present at: https://github.com/dhruvbaldawa/Tutorials/blob/master/google+/google_plus.php


I guess you mean this offical library:

Offical API Library

0

精彩评论

暂无评论...
验证码 换一张
取 消