Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Rails 3.x sample app that connects to the Foursquare API

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 public
Octocat-spinner-32 script
Octocat-spinner-32 test
Octocat-spinner-32 vendor
Octocat-spinner-32 .DS_Store
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 config.ru
README.md

Foursquare Rails Examples

This is a working Rails application that connects to the Foursquare API using Quimby. The application is live on Heroku at http://foursquare-rails-examples.heroku.com

Configuration

Register your application

First, you need to register your application. Be sure to set your callback url to something like {MY_APP_ROOT_URL}/session/callback (this could be http://localhost:3000/session/callback).

Then, update config/application.yml with your app_id and app_secret.

Try it!

Launch your server and that's it! You have an application that connected to the Foursquare v2 API.

Have a look at the code

Go check app/controllers/examples_controller.rb

Documentation

Documentation of Quimby, the Ruby wrapper used in this example application, is available here.

Documentation of Foursquare API is available here.

Fork it!

Want to contribute? Add some examples? That's great! Fork this project and send a pull request :O - I'll add your name to the list of contributors.

Something went wrong with that request. Please try again.