user169110
user169110

Reputation:

How can I use OAuth and PHP without using the oauth-php library?

I need to build a script that uses OAuth authentication to connect to Foursquare's API, but oauth-php library is too complicated.

Any one page scripts that don't use MySQL? I would rather just use cookies.

Upvotes: 16

Views: 13894

Answers (5)

Adrian Malik
Adrian Malik

Reputation: 101

If you dont want to use oauth-php library you can even write your own small lib doing this. You can for example check my the simplest and the smallest implementation of the OAuth with Twitter and Linked:

https://github.com/adrianmalik/php-oauth/blob/master/README.md

There will find everything you need to do this.

Upvotes: 0

Rahul Thakur
Rahul Thakur

Reputation: 1

I have used this library: http://code.google.com/p/oauth-php/ and now able to understand why there is two different thing consumer and server well basically Its seems example here is doing the same thing here.

Upvotes: 0

user276827
user276827

Reputation:

This library is really simple to use:

http://github.com/jrconlin/oauthsimple/

Upvotes: 5

Justin
Justin

Reputation: 5069

Check out the oauth portion of the library at http://code.google.com/p/photobucket-api-php5/

Also, the Zend_Oauth module (available in the incubator, and hopefully in the next Framework release) is excellent and easy to use. It just looks like a Zend_Http_Client after you set it up.

Upvotes: 0

ZZ Coder
ZZ Coder

Reputation: 75456

Have you tried this one?

https://svn.iamcal.com/public/php/lib_oauth/lib_oauth.php

It wouldn't fit in one page but it's really simple.

Upvotes: -4

Related Questions