New open source project, foursquareCFC - ColdFusion wrapper for the Foursquare social networking API

Filed under: foursquareCFC

comments (16) Views: 4,821

Of course you've heard of Foursquare, you're on Twitter right? I'm on Twitter and I've certainly heard of Foursquare. But up until a few weeks ago I didn't really "get" Foursquare. Then I had lunch with a friend of mine and he explained the whole deal, but more importantly he communicated some of the potential for the mass quantities of data that Foursquare users freely share and my eyes were opened. He also mentioned that Foursquare had an API and I was sold. I joined Foursquare, started reviewing their documentation, and decided to write some code. You might already know that I enjoy writing ColdFusion wrappers for external APIs and empowering developers to write rich applications.

So without any more hemming and hawing I present to you foursquareCFC. Currently it's a one for one with the Foursquare API and has been thoroughly tested. I'd love for you to start using it in your app today! What are you waiting for? Go play with it right now, the first checkin's on me!

View the foursquareCFC project

Amazon logo

If this article was interesting, or helpful, or even wrong, please consider leaving a comment, or buying something from my wishlist. It's appreciated!

And the reason it is not on RIAForge is.... ;)

Raymond Camden - July 09, 2010 08:05 am

Oh I feel dumb. Can you ignore that last comment? :)

Raymond Camden - July 09, 2010 08:06 am

Hah. You must have an automated approval bot for RIAForge because the project just got approved a few days ago.

andy matthews - July 09, 2010 08:11 am

Great job. Looking forward to checking it out.

Joshua Cyr - July 19, 2010 08:52 am

Thanks Joshua. I hope people get some good use out of it. It was a fun project to work on, and I'm really enjoying using Foursquare myself.

andy matthews - July 19, 2010 10:41 am

Have you done any projects with it yet? I have an idea, but of course it looks like they don't quite allow what I want to do *yet*. :-)

Joshua - July 24, 2010 10:49 am

Not yet, I mostly wanted to put it out there for others to use.

andy matthews - July 24, 2010 10:06 pm

Andy, Very helpful - a quick ques: venue details by vid displays all the checkins if the API call is authenticated... does your proj handle the API auth and displays the checkins for a venue?

Das Nobel - July 27, 2010 12:10 pm

Das...

I am authenticating for this method, and foursquareCFC does return the stats, as well as the checkins block. In fact, take a look at this chunk of code. It references the Chinese restaurant across the street from my office. I happen to be mayor and I JUST checked in as a test to see what it would show.

<cfset cfc = CreateObject('component','foursquareCFC').init('user', 'pw')>
<cfset params = {}>
<cfset params['outputtype'] = 'xml'>
<cfset params['vid'] = 1314063>
<cfset data = cfc.venueDetails(argumentcollection=params)>
<cfdump var="#data#">

If you run this code before I check into another location you'll probably see me as there.

andy matthews - July 27, 2010 12:43 pm

Andy
Excellent!!! I can see the checkins block. This is so far the best CF component for foursquare. Great Job!!!

Das Nobel - July 27, 2010 01:10 pm

Why thank you Das. I appreciate your kind words. Are there actually other CFCs for foursquare? I did a search before I began the project as I didn't want to duplicate efforts.

andy matthews - July 27, 2010 01:31 pm

Andy,
You are definitely NOT duplicating the effort. This is great. Also please check your your blog email - I had a question for you.

Das Nobel - July 27, 2010 03:21 pm

Andy,
I found answer to my own email question. I also blogged about this last night.
http://dasnobel.com/2010/07/28/coldfusion-component-for-foursquare-api-methods/

Das Nobel - July 28, 2010 06:57 am

Andy, Great script. Love the ability to get so much data out of FS with ease. Quick question, are you going to make a new version of your script for the v2 API?

Kris O. - February 24, 2011 08:47 am

I didn't know about v2 of the API. I'll do some research into it. Thanks for letting me know, and for the kind words!

andy matthews - February 24, 2011 09:36 am

Hey everyone (Kris ).)...I just wanted to let you know that I've released foursquareCFC v2 which supports oAuth 2.0. Get it while it's hot!

andy matthews - August 10, 2011 07:21 pm