SDKs
There are no official SDKs yet. The API is described by an OpenAPI document, so you can generate a client in most languages:
curl -o agantia-openapi.json https://developer.staging.agantia.com/openapi.json
# TypeScript (fetch)
npx @openapitools/openapi-generator-cli generate -i agantia-openapi.json -g typescript-fetch -o ./agantia-client
# Python
npx @openapitools/openapi-generator-cli generate -i agantia-openapi.json -g python -o ./agantia-client
Operation IDs are stable, for example Products_list and Bookings_create, so generated method names do not change between releases.
Whatever client you use, handle these yourself:
- getting and caching the access token
- sending an
Idempotency-Keyon bookings and cancellations - retrying
429and5xxresponses with backoff, as described in Errors