0.0
No commit activity in last 3 years
No release in over 3 years
Ruby toolkit for working with the viagogo API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
>= 0
>= 0

Runtime

~> 0.8.9
~> 1.8.1
~> 0.2.0
 Project Readme

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