Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.12 KB

Webhooks.md

File metadata and controls

31 lines (22 loc) · 1.12 KB

High-Level Examples (Webhooks)

Source Code: WebhooksApi

Retrieve a Webhook (API Reference)

$webhookUrl = "https://api-sandbox.dwolla.com/webhooks/9ece9660-aa34-41eb-80d7-0125d53b45e8";
$webhooksApi = new DwollaSwagger\WebhooksApi($apiClient);

$webhook = $webhooksApi->id($webhookUrl);
$webhook->topic; # => "transfer_created"

Retry a Webhook (API Reference)

$webhookUrl = "https://api-sandbox.dwolla.com/webhooks/9ece9660-aa34-41eb-80d7-0125d53b45e8";
$webhooksApi = new DwollaSwagger\WebhooksApi($apiClient);
$webhooksApi->retryWebhook($webhookUrl);

List Retries for a Webhook (API Reference)

$webhookUrl = "https://api-sandbox.dwolla.com/webhooks/9ece9660-aa34-41eb-80d7-0125d53b45e8";
$webhooksApi = new DwollaSwagger\WebhooksApi($apiClient);

$retries = $webhooksApi->retriesById($webhookUrl);
$retries->total; # => 1