Foursquare v2 REST API client library for Ruby
Ruby
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
.rspec
.yardopts
Gemfile
Gemfile.lock
HISTORY.rdoc
LICENSE.txt
README.md
README.rdoc
Rakefile
skittles.gemspec

README.md

Skittles endorse

A Ruby implementation of the Foursquare v2 REST API.

Documentation

You can view detailed documentation of this library at http://rdoc.info/github/anthonator/skittles. We try to make sure that our documentation is up-to-date and thorough. However, we do recommend keeping the Foursquare developer documentation handy.

If you find a discrepency in our documentation please file an issue.

Usage

require 'rubygems'
require 'skittles'
  
Skittles.configure do |config|
  config.client_id     = '...'
  config.client_secret = '...'
  config.access_token  = '...'
end
  
begin
  Skittles.venue('211152')
rescue Skittles::Error => e
  puts "You recieved the #{e.type} error and a status code of #{e.code} which means #{e.detail}."
end