Skip to content

richardvenneman/tiqets

Repository files navigation

🎢 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.

About

🎢 Ruby Tiqets.com API wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published