Project

tiqets

0.0
No commit activity in last 3 years
No release in over 3 years
Ruby Tiqets API wrapper.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 3
 Project Readme

🎢 Tiqets

A simple (unofficial) Ruby wrapper for the Tiqets API.

Travis CI status RubyGem Code Climate Code Climate

Full 100% API coverage is not a direct goal as we're primarily developing this for our needs at CitySpotters. Pull requests are definitely welcome.

Installation

Add this line to your application's Gemfile:

gem 'tiqets'

And then execute:

$ bundle

Or install it yourself as:

$ gem install tiqets

Usage

You must be in possession of a Tiqets API key. Use this key to initialize a new API client:

@client = Tiqets::Client.new(api_key: 'my-api-key')

Alternatively you can set the TIQETS_API_KEY environment variable and use the shared API instance with:

@client = Tiqets.default_api

Products

client#find_product(product_id, params)

Finds a product by Product ID. Returns an object with the properties described in the API documentation.

Requires the lang and currency params as specified in the API documentation.

product = @client.find_product(973698)
# => #<Tiqets::Resources::Product::Product:0x007fe9c8438a00>

product.title #=> "Louvre Museum: Skip the line"

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/richardvenneman/tiqets.

License

The gem is available as open source under the terms of the MIT License.