Webhooks (WebhookApi)
Le module WebhookApi gère les webhooks pour les notifications d’événements.
Accès : client.webhook
Méthodes
set
Configure un webhook.
Exemple
final response = await client.webhook.set(
SetWebhookParams(
apiKey: 'user_api_key',
eventType: 'ORDER_RECEIVED',
url: 'https://example.com/webhook',
isActive: true,
),
);list
Liste les webhooks.
Exemple
final response = await client.webhook.list(
AppScopedParams(apiKey: 'user_api_key'),
);delete
Supprime un webhook.
Exemple
final response = await client.webhook.delete(
DeleteWebhookParams(
apiKey: 'user_api_key',
eventType: 'ORDER_RECEIVED',
),
);Last updated on