Method: Mandrill::Webhooks#info

Defined in:
lib/mandrill/api.rb

#info(id) ⇒ Hash

Given the ID of an existing webhook, return the data about it

Parameters:

  • id (Integer)

    the unique identifier of a webhook belonging to this account

Returns:

  • (Hash)

    the information about the webhook

    • Integer

      id a unique integer indentifier for the webhook

    • String

      url The URL that the event data will be posted to

    • String

      description a description of the webhook

    • String

      auth_key the key used to requests for this webhook

    • Array

      events The message events that will be posted to the hook

      - [String] events[] the individual message event (send, hard_bounce, soft_bounce, open, click, spam, unsub, or reject)
      
    • String

      created_at the date and time that the webhook was created as a UTC string in YYYY-MM-DD HH:MM:SS format

    • String

      last_sent_at the date and time that the webhook last successfully received events as a UTC string in YYYY-MM-DD HH:MM:SS format

    • Integer

      batches_sent the number of event batches that have ever been sent to this webhook

    • Integer

      events_sent the total number of events that have ever been sent to this webhook

    • String

      last_error if we’ve ever gotten an error trying to post to this webhook, the last error that we’ve seen



1756
1757
1758
1759
# File 'lib/mandrill/api.rb', line 1756

def info(id)
    _params = {:id => id}
    return @master.call 'webhooks/info', _params
end