You are here

public function DrupalMandrill::webhooks_add in Mandrill 7

@link https://mandrillapp.com/api/docs/webhooks.html#method=add

Return value

array|MandrillException

File

lib/mandrill.inc, line 340
Wrapper class around the Mandrill API.

Class

DrupalMandrill
Class DrupalMandrill.

Code

public function webhooks_add($url, $events) {
  return $this
    ->request('webhooks/add', array(
    'url' => $url,
    'events' => $events,
  ));
}