Ruby SDK for the Ticketmaster Open Platform (http://developer.ticketmaster.com/).
Wraps the Ticketmaster API in easy to access functions.
gem install ticketmaster-sdk
or in Gemfile
gem 'ticketmaster-sdk'
- Discovery
- Search Events
- Search Attractions
- Search Classifications
- Search Venues
- Get Events
- Get Event's Images
- Get Attractions
- Get Classification
- Get Venue
- Get Legacy Event (legacy Ticketmaster IDs)
For a list of parameters, check http://developer.ticketmaster.com/
Discovery Methods | Required |
---|---|
search_events | |
get_event | id |
get_event_images | id |
search_attractions | |
get_attraction | id |
search_classifications | |
get_classification | id |
search_venues | |
get_venue | id |
get_legacy_event | id |
Pass optional params to the call via options.params:
require 'ticketmaster-sdk'
params = {page: 5, size: 10, source: 'ticketmaster'}
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_events(params: params)
events = response.results
require 'ticketmaster-sdk'
params = {page: 5, size: 10, source: 'ticketmaster'}
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_events(params: params)
events = response.results
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
event = client.get_event('ID OF EVENT')
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.get_event_images('ID OF EVENT')
images = response.results
require 'ticketmaster-sdk'
params = {page: 5, size: 10, source: 'ticketmaster'}
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_attractions(params: params)
attractions = response.results
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
attraction = client.get_attraction('ID OF ATTRACTION')
require 'ticketmaster-sdk'
params = {page: 5, size: 10, source: 'ticketmaster'}
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_classifications(params: params)
classifications = response.results
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
classification = client.get_classification('ID OF CLASSIFICATION')
require 'ticketmaster-sdk'
params = {page: 5, size: 10, source: 'ticketmaster'}
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_venues(params: params)
venues = response.results
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
venue = client.get_venue('ID OF VENUE')
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
event = client.get_legacy_event('LEGACY TICKETMASTER ID OF EVENT')
Methods:
- results
- current_page
- total_pages
- next_page
- previous_page
- next_result
- previous_result
- reload
Methods:
- id
- name
- description
- embedded
- dates
- start
- end
- timezone
- images
- get_images
- classifications
- attractions
- venues
- reload
Methods:
- id
- name
- address
- state
- city
- country
- country_code
- location
- timezone
- postal_code
- url
- reload
Methods:
- url
- ratio
- width
- height
- is_fallback?
Methods:
- id
- name
- reload
- genres
- subgenres
- type
Methods:
- id
- name
- type
- url
- locale
- images
- classifications
- reload
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_events
event = response.results.first
event.get_images
require 'ticketmaster-sdk'
params = {page: 5, size: 10, source: 'ticketmaster'}
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_events(params: params)
events = response.results
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_venues
venue = response.results.first
venue.address
require 'ticketmaster-sdk'
client = Ticketmaster.client(apikey: 'YOUR API KEY')
response = client.search_events
next = response.next_result