Webhooks

Webhooks are a mechanism to configure Omneo to send a HTTP request to your plugin whenever a particular event occurs. This enables your plugin to respond in real-time when things happen within Omneo.

Browse

Fetch listing of webhooks attached to consumer.

$omneo->webhooks()->browse(); // Illuminate\Support\Collection

Read

Fetch a single webhook.

$omneo->webhooks()->read(1); // Omneo\Webhook

Edit

Edit the given webhook.

$omneo->webhooks()->edit(new Omneo\Webhook([
    'id' => 123,
    'event' => 'profile.created',
    'url' => 'https://example.com/omneo'
])); // Omneo\Webhook

Add

Create the given webhook.

$omneo->webhooks()->add(new Omneo\Webhook([
    'event' => 'profile.created',
    'url' => 'https://example.com/omneo'
])); // Omneo\Webhook

Delete

Delete the given webhook.

$omneo->webhooks()->delete(new Omneo\Webhook([
    'id' => 123
])); // void

Last updated