Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.21 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.21 KB

Ticketmaster

An Elixir library for accessing the Ticketmaster API.

Installation

  1. Add ticketmaster to your list of dependencies in mix.exs:
def deps do
  [{:ticketmaster, git: "https://github.com/seanabrahams/elixir-ticketmaster.git"}]
end
  1. Configure your Ticketmaster API key
  config :ticketmaster, api_key: "<your API key>"

Usage

Discovery API

# Find all events for Radiohead
Ticketmaster.Discovery.search_events(%{keyword: "radiohead"})

# Find events for Radiohead in Los Angeles, CA
Ticketmaster.Discovery.search_events(%{keyword: "radiohead", city: "Los Angeles", stateCode: "CA", countryCode: "US"})

See https://github.com/seanabrahams/elixir-ticketmaster/blob/master/lib/ticketmaster/discovery.ex for available functions.

Commerce API

# You need to obtain an event ID from searching events first
Ticketmaster.Commerce.get_event_offers("event_id_here")

Todo

  • Partner API
  • Publish API
  • Deals API
  • International Discovery API