diff --git a/src/Pipedrive.php b/src/Pipedrive.php index 6d2b9a5..de37b56 100644 --- a/src/Pipedrive.php +++ b/src/Pipedrive.php @@ -35,6 +35,7 @@ use Devio\Pipedrive\Resources\UserConnections; use Devio\Pipedrive\Resources\Users; use Devio\Pipedrive\Resources\UserSettings; +use Devio\Pipedrive\Resources\Webhooks; use Illuminate\Support\Str; use Devio\Pipedrive\Http\Request; use Devio\Pipedrive\Http\PipedriveClient; @@ -73,6 +74,7 @@ * @method UserConnections userConnections() * @method Users users() * @method UserSettings userSettings() + * @method Webhooks webhooks() */ class Pipedrive { diff --git a/src/Resources/Webhooks.php b/src/Resources/Webhooks.php new file mode 100644 index 0000000..f70c784 --- /dev/null +++ b/src/Resources/Webhooks.php @@ -0,0 +1,57 @@ +getName()}"); + } + + /** + * Update an entity by ID. + * @param $id + * @param array $values + * + * @return \Devio\Pipedrive\Http\Response|void + * @throws PipedriveException + */ + public function update($id, array $values) + { + throw new PipedriveException("The method update() is not available for the resource {$this->getName()}"); + } +}