An Elixir library for accessing the Ticketmaster API.
- Add
ticketmaster
to your list of dependencies inmix.exs
:
def deps do
[{:ticketmaster, git: "https://github.com/seanabrahams/elixir-ticketmaster.git"}]
end
- Configure your Ticketmaster API key
config :ticketmaster, api_key: "<your API key>"
# 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.
# You need to obtain an event ID from searching events first
Ticketmaster.Commerce.get_event_offers("event_id_here")
- Partner API
- Publish API
- Deals API
- International Discovery API