Getting OAuth working with foursquare-async library

4 views
Skip to first unread message

joesiewert

unread,
Apr 15, 2010, 4:41:28 PM4/15/10
to foursquare API
I put together a how-to post on getting OAuth working with the
foursquare-async library (http://github.com/jmathai/foursquare-
async). Hopefully it helps someone new get started. http://bit.ly/cbdwJm

Joe

castig

unread,
Apr 16, 2010, 9:50:39 AM4/16/10
to foursquare API
I'm really excited to try this. Thanks!
--
To post to this group, send email to foursqu...@googlegroups.com

http://groups.google.com/group/foursquare-api

Bruno Barreto

unread,
Apr 17, 2010, 7:58:57 AM4/17/10
to foursquare-api
I'm already using this library in my project. Works well. =D
--
best regards,
Bruno Barreto
web standardization and programming
http://www.brunobarreto.net/
br...@brunobarreto.net
(11) 9425-5006

castig

unread,
Apr 20, 2010, 2:59:05 AM4/20/10
to foursquare API
hey joe,
i know we were talking about what variables to store in MYSQL.
This took me forever to figure out!

But it's these 2 variables that you have on line 17 of callback.php
$token->oauth_token;
$token->oauth_token_secret;

And the trick..is that when you want to use the stored variables you
have to wrap lines 14-17 in an IF statement so that these lines are
only called once (otherwise you'll get lots of random errors). So
basically, only call those lines once per user. Store that data. Then
just refer to those variables in the DB.

makes sense?
once i get my code cleaned up and running I can post it all (on my
blog or something)
Chris





On Apr 17, 7:58 am, Bruno Barreto <brunoafbarr...@gmail.com> wrote:
> I'm already using this library in my project. Works well. =D
>
>
>
> On Fri, Apr 16, 2010 at 10:50, castig <stiggy...@gmail.com> wrote:
> > I'm really excited to try this. Thanks!
>
> > On Apr 15, 4:41 pm, joesiewert <joe.siew...@gmail.com> wrote:
> > > I put together a how-to post on getting OAuth working with the
> > > foursquare-async library (http://github.com/jmathai/foursquare-
> > > async).  Hopefully it helps someone new get started.
> >http://bit.ly/cbdwJm
>
> > > Joe
>
> > --
> > To post to this group, send email to foursqu...@googlegroups.com
>
> >http://groups.google.com/group/foursquare-api
>
> --
> best regards,
> Bruno Barreto
> web standardization and programminghttp://www.brunobarreto.net/
> br...@brunobarreto.net
> (11) 9425-5006
>
> --
> To post to this group, send email to foursqu...@googlegroups.com
>
> http://groups.google.com/group/foursquare-api

joesiewert

unread,
Apr 21, 2010, 3:53:47 PM4/21/10
to foursquare API
Awesome, thanks for the update. That does make sense. Definitely
interested in seeing the code. Let us know if you get it posted at
some point.
Reply all
Reply to author
Forward
0 new messages