Skip to content

songkick/viagogo.rb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The viagogo Ruby Gem

Gem Version Build Status Dependency Status Code Climate Coverage Status

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

  1. Fork it ( http://github.com/akilb/viagogo.rb/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%