You are here

function Mandrill::webhooks_add in Mandrill 6

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

Return value

array|Mandrill_Exception

File

./mandrill.class.php, line 285

Class

Mandrill

Code

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