The viagogo Ruby Gem
Ruby toolkit for working with the viagogo API
Installation
Add this line to your application's Gemfile:
gem 'viagogo-client'
And then execute:
$ bundle
Or install it yourself as:
$ gem install viagogo-client
Usage
require 'viagogo-client'
# All methods require authentication. To get your viagogo OAuth credentials,
# see http://developer.viagogo.net/firststeps
client = Viagogo::Public::Client.new do |config|
config.consumer_key = YOUR_CONSUMER_KEY
config.consumer_secret = YOUR_CONSUMER_SECRET
end
token = client.get_access_token
client.access_token = token.oauth_token
client.access_token_secret = token.oauth_token_secret
# Get a list of events that match the given search query
events = client.events_search "FC Barcelona tickets"
# Pass query parameters as a hash of options
events = clients.events_search "FC Barcelona tickets", :page => 2
Contributing
- Fork it ( http://github.com/akilb/viagogo.rb/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request