Skip to content

omniticket/weezevent API reference

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

Read from the package's own PHP files at the commit cb92074ae54b: 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\Weezevent

  • WeezeventFactory class

    Weezevent, from its options:

    7 options · 1 method

  • WeezeventProvider class

    Weezevent's API (https://api.weezevent.com, documented on that page): GET /events, /event/{id}/details, /tickets, /dates and /participant/list with the partner's api_key and the organizer's access_token. Reading only: nothing is written, no ticket marked as scanned.

    9 methods

Omniticket\Weezevent

WeezeventFactory class

final class WeezeventFactory extends ProviderFactory WeezeventFactory.php:21

Weezevent, from its options:

api_key the partner API key Weezevent gives (access is limited to registered partners) access_token the organizer's token (persistent: POST /auth/access_token once and keep it) - or: username, password the organizer's login, exchanged for a token at the first call timezone the zone Weezevent's dates are in (Europe/Paris): it gives local times without one currency the currency of its prices (EUR): its answers do not name it url https://api.weezevent.com

Options

OptionDefault
access_token''
username''
password''
timezone'Europe/Paris'
currency'EUR'
url'https://api.weezevent.com'
api_keyrequired

WeezeventFactory::__construct()

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

WeezeventProvider class

final class WeezeventProvider implements EventCatalogInterface, AttendeeListInterface, TicketCheckInterface WeezeventProvider.php:31

Weezevent's API (https://api.weezevent.com, documented on that page): GET /events, /event/{id}/details, /tickets, /dates and /participant/list with the partner's api_key and the organizer's access_token. Reading only: nothing is written, no ticket marked as scanned.

WeezeventProvider::__construct()

public function __construct(HttpClientInterface $http, readonly string $apiKey, ?string $accessToken = null, readonly ?string $username = null, readonly ?string $password = null, readonly \DateTimeZone $timezone = new \DateTimeZone('Europe/Paris'), readonly string $currency = 'EUR', readonly string $url = 'https://api.weezevent.com')

WeezeventProvider::getName()

public function getName(): string

WeezeventProvider::getTitle()

public function getTitle(): string

WeezeventProvider::capabilities()

public function capabilities(): Capabilities

WeezeventProvider::events()

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

WeezeventProvider::event()

public function event(string $id): Event

WeezeventProvider::attendees()

public function attendees(string $eventId, ?\DateTimeImmutable $updatedSince = null): iterable

WeezeventProvider::check()

public function check(string $eventId, string $code): Check

Weezevent has no lookup by barcode: the event's participants are read, and the code looked for among them.

WeezeventProvider::eventCategories()

public function eventCategories(): array

Weezevent's event categories ("Concerts", "Festivals"...), by id: the one call its documentation marks as public, no key needed.