Skip to content

omniticket/ticketmaster API reference

Floor
Provider · Omniticket
Version
1.x
Conformance suite
not wired
Verified for real
Verified in part
Licence
MIT
composer require omniticket/ticketmaster:1.x-dev

Read from the package's own PHP files at the commit 43d607a8c195: its namespaces, classes, interfaces and enums, their public constants, properties and methods with their PHPDoc, and the options its factories take. Nothing of it is run.

Omniticket\Ticketmaster

  • TicketmasterFactory class

    Ticketmaster's Discovery API, from its options:

    2 options · 1 method

  • TicketmasterProvider class

    Ticketmaster's Discovery API v2 (https://developer.ticketmaster.com): GET /events.json and /events/{id}.json with the app's key. A public catalogue: no attendee, no check - the tickets are Ticketmaster's, bought at the event's url.

    6 methods

Omniticket\Ticketmaster

TicketmasterFactory class

final class TicketmasterFactory extends ProviderFactory TicketmasterFactory.php:20

Ticketmaster's Discovery API, from its options:

api_key the consumer key of an app on developer.ticketmaster.com country_code ISO 3166-1 alpha-2, every search narrowed to it ("FR") city, venue_id, attraction_id, classification_name, locale the same: a site lists the events of its venue, its artist, its city url https://app.ticketmaster.com/discovery/v2

Options

OptionDefault
url'https://app.ticketmaster.com/discovery/v2'
api_keyrequired

TicketmasterFactory::__construct()

public function __construct(readonly ?HttpClientInterface $http = null)

TicketmasterProvider class

final class TicketmasterProvider implements EventCatalogInterface TicketmasterProvider.php:21

Ticketmaster's Discovery API v2 (https://developer.ticketmaster.com): GET /events.json and /events/{id}.json with the app's key. A public catalogue: no attendee, no check - the tickets are Ticketmaster's, bought at the event's url.

TicketmasterProvider::__construct()

public function __construct(HttpClientInterface $http, readonly string $apiKey, readonly array $filters = [], readonly string $url = 'https://app.ticketmaster.com/discovery/v2')
$filters

search parameters every listing carries (countryCode, venueId...)

TicketmasterProvider::getName()

public function getName(): string

TicketmasterProvider::getTitle()

public function getTitle(): string

TicketmasterProvider::capabilities()

public function capabilities(): Capabilities

TicketmasterProvider::events()

public function events(EventQuery $query = new EventQuery()): iterable

TicketmasterProvider::event()

public function event(string $id): Event