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é.
HelloAssoFactoryclassHelloAsso, from its options:
4 options · 1 method
HelloAssoProviderclassHelloAsso'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
| Option | Default | |
|---|---|---|
url | 'https://api.helloasso.com' | |
client_id | required | |
client_secret | required | |
organization | required |
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(): stringHelloAssoProvider::getTitle()
public function getTitle(): stringHelloAssoProvider::capabilities()
public function capabilities(): CapabilitiesHelloAssoProvider::events()
public function events(EventQuery $query = new EventQuery()): iterableHelloAssoProvider::event()
public function event(string $id): EventHelloAssoProvider::attendees()
public function attendees(string $eventId, ?\DateTimeImmutable $updatedSince = null): iterableHelloAssoProvider::check()
public function check(string $eventId, string $code): CheckHelloAsso 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".