Sha256: 734507443135fb0699f310c03a4a14820b0e543374108630035f303a47b74d7b

Contents?: true

Size: 1.12 KB

Versions: 3

Compression:

Stored size: 1.12 KB

Contents

Mailgun - Webhooks
====================

This is the Mailgun Ruby *Webhook* utilities.

The below assumes you've already installed the Mailgun Ruby SDK in to your
project. If not, go back to the master README for instructions. It currently supports
all calls except updating webhooks.

Usage - Webhooks
-----------------------

```ruby
# First, instantiate the Mailgun Client with your API key
mg_client = Mailgun::Client.new('your-api-key')
hook = Mailgun::Webhooks.new(mg_client)

# Get a list webhooks for a domain.
hook.list 'my.perfect.domain'

# View a single webhook detail
hook.info 'my.perfect.domain', 'deliver'

# Add a single url for all webhooks
hook.create_all 'my.perfect.domain', 'https://the.webhook.url/'

# Add a url for a specific webhook
hook.create 'my.perfect.domain', 'deliver', 'https://the.webhook.url/'

# Remove a url for a specific webhook
hook.remove 'my.perfect.domain', 'deliver'

# Remove all webhooks for a domain
hook.remove_all 'my.perfect.domain'
```

More Documentation
------------------
See the official [Mailgun Domain Docs](https://documentation.mailgun.com/en/latest/api-webhooks.html)
for more information

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mailgun-ruby-1.2.16 docs/Webhooks.md
mailgun-ruby-1.2.15 docs/Webhooks.md
mailgun-ruby-1.2.14 docs/Webhooks.md