Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anthonator/skittles
Foursquare v2 REST API client library for Ruby
https://github.com/anthonator/skittles
Last synced: 17 days ago
JSON representation
Foursquare v2 REST API client library for Ruby
- Host: GitHub
- URL: https://github.com/anthonator/skittles
- Owner: anthonator
- License: mit
- Created: 2011-02-19T18:50:37.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-05-15T16:19:45.000Z (over 11 years ago)
- Last Synced: 2024-10-12T03:53:08.184Z (about 1 month ago)
- Language: Ruby
- Homepage: http://rdoc.info/github/anthonator/skittles/master/frames
- Size: 321 KB
- Stars: 31
- Watchers: 3
- Forks: 12
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.rdoc
- License: LICENSE.txt
Awesome Lists containing this project
README
# Skittles [![endorse](http://api.coderwall.com/anthonator/endorsecount.png)](http://coderwall.com/anthonator)
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](https://developer.foursquare.com/docs/) handy.
If you find a discrepency in our documentation please [file an issue](https://github.com/anthonator/skittles/issues/new).
## Usage
```ruby
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
```