config = $config ?: new Configuration(); } /** * Add webhook * Add a new webhook. */ public function add($body = []) { return $this->config->post('/webhooks/add', $body); } /** * Delete webhook * Delete an existing webhook. */ public function delete($body = []) { return $this->config->post('/webhooks/delete', $body); } /** * Get webhook info * Given the ID of an existing webhook, return the data about it. */ public function info($body = []) { return $this->config->post('/webhooks/info', $body); } /** * List webhooks * Get the list of all webhooks defined on the account. */ public function list($body = []) { return $this->config->post('/webhooks/list', $body); } /** * Update webhook * Update an existing webhook. */ public function update($body = []) { return $this->config->post('/webhooks/update', $body); } }