5

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.

1
  • 2
    There are links to examples all over that page. If you google "google api oauth" you get a lot more. Commented Jan 18, 2010 at 5:46

5 Answers 5

4

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.

Sign up to request clarification or add additional context in comments.

1 Comment

that's oauth1 and not oauth2
3

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

Comments

1

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

Comments

1

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

Comments

1

I guess you mean this offical library:

Offical API Library

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.