views:

1344

answers:

5

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.

+3  A: 

I've written an PHP oAuth library that is painfully easy to use. Check it out on GitHub.

Jamie Rumbelow
A: 

Have you tried this one?

https://svn.iamcal.com/public/php/lib%5Foauth/lib%5Foauth.php

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

ZZ Coder
A: 

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.

Justin
+1  A: 

I really like both of them ... Can these be used as oauth server ? I need a simple class ...

Feha
+2  A: 

This library is really simple to use:

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

Sid
This one is also better maintained and has a painfully simple example included in the source as of this August. I'd opt for this one (as I did!).
Josh Smith