oAuth with PHP (for google api)

20,110

Solution 1

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

Solution 2

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.

Solution 3

I guess you mean this offical library:

Offical API Library

Solution 4

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

Solution 5

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

Share:
20,110
saturngod
Author by

saturngod

CEO and Founder of COMQUAS CO., Ltd. Love and work with Swift,Objective-C. Hobby on node.js and rethinks. Twitter : @saturngod

Updated on October 18, 2020

Comments

  • saturngod
    saturngod over 3 years

    How to use oAuth with PHP ? I can't install 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.