Aller au contenu

omniticket/helloasso Référence de l’API

Étage
Fournisseur · Omniticket
Version
1.x
Suite de conformité
non branchée
Vérifié en réel
Vérifié en partie
Licence
MIT
composer require omniticket/helloasso:1.x-dev

Lue dans les fichiers PHP du paquet au commit c6d5ca286a91 : ses espaces de noms, classes, interfaces et énumérations, leurs constantes, propriétés et méthodes publiques avec leur PHPDoc, et les options que prennent ses fabriques. Rien n’en est exécuté.

Omniticket\HelloAsso

  • HelloAssoFactory class

    HelloAsso, from its options:

    4 options · 1 method

  • HelloAssoProvider class

    HelloAsso's API v5 (https://dev.helloasso.com): an association's forms of type Event are its events (GET /v5/organizations/{slug}/forms), their tiers its rates (.../forms/Event/{formSlug}/public), the items sold its tickets (.../forms/Event/{formSlug}/items), with a bearer token from POST /oauth2/token (client credentials). An event's id is its form slug.

    8 methods

Omniticket\HelloAsso

HelloAssoFactory class

final class HelloAssoFactory extends ProviderFactory HelloAssoFactory.php:18

HelloAsso, from its options:

client_id, client_secret the API client of the association's back office ("Intégrations et API") organization the association's slug, as in https://www.helloasso.com/associations/<slug> url https://api.helloasso.com (https://api.helloasso-sandbox.com for the sandbox)

Options

OptionDefault
url'https://api.helloasso.com'
client_idrequired
client_secretrequired
organizationrequired

HelloAssoFactory::__construct()

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

HelloAssoProvider class

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

HelloAsso's API v5 (https://dev.helloasso.com): an association's forms of type Event are its events (GET /v5/organizations/{slug}/forms), their tiers its rates (.../forms/Event/{formSlug}/public), the items sold its tickets (.../forms/Event/{formSlug}/items), with a bearer token from POST /oauth2/token (client credentials). An event's id is its form slug.

Reading only.

HelloAssoProvider::__construct()

public function __construct(HttpClientInterface $http, readonly string $clientId, readonly string $clientSecret, readonly string $organization, readonly string $url = 'https://api.helloasso.com')

HelloAssoProvider::getName()

public function getName(): string

HelloAssoProvider::getTitle()

public function getTitle(): string

HelloAssoProvider::capabilities()

public function capabilities(): Capabilities

HelloAssoProvider::events()

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

HelloAssoProvider::event()

public function event(string $id): Event

HelloAssoProvider::attendees()

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

HelloAssoProvider::check()

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

HelloAsso has no lookup by code: the event's items are read and the code looked for among their QR codes. Its API, as read, does not say whether a ticket was scanned: a check is never "already used".