Skip to content

seanabrahams/elixir-ticketmaster

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Elixir library for Ticketmaster's API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages