From 391660dacd164ecaeae0e4baed0f2533d78cf1f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=ADdac?= Date: Wed, 19 May 2021 11:41:37 +0200 Subject: [PATCH] Added callLogs resource --- src/Pipedrive.php | 3 +++ src/PipedriveFacade.php | 2 ++ src/Resources/CallLogs.php | 22 ++++++++++++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 src/Resources/CallLogs.php diff --git a/src/Pipedrive.php b/src/Pipedrive.php index 28b7e7b..0359a30 100644 --- a/src/Pipedrive.php +++ b/src/Pipedrive.php @@ -7,6 +7,7 @@ use Devio\Pipedrive\Resources\ActivityFields; use Devio\Pipedrive\Resources\ActivityTypes; use Devio\Pipedrive\Resources\Authorizations; +use Devio\Pipedrive\Resources\CallLogs; use Devio\Pipedrive\Resources\Currencies; use Devio\Pipedrive\Resources\DealFields; use Devio\Pipedrive\Resources\Deals; @@ -48,6 +49,7 @@ * @method ActivityFields activityFields() * @method ActivityTypes activityTypes() * @method Authorizations authorizations() + * @method CallLogs callLogs() * @method Currencies currencies() * @method DealFields dealFields() * @method Deals deals() @@ -83,6 +85,7 @@ * @property-read ActivityFields $activityFields * @property-read ActivityTypes $activityTypes * @property-read Authorizations $authorizations + * @property-read CallLogs $callLogs * @property-read Currencies $currencies * @property-read DealFields $dealFields * @property-read Deals $deals diff --git a/src/PipedriveFacade.php b/src/PipedriveFacade.php index 27b175d..5e776c5 100644 --- a/src/PipedriveFacade.php +++ b/src/PipedriveFacade.php @@ -10,6 +10,7 @@ * @method static Resources\ActivityTypes activityTypes() * @method static Resources\Authorizations authorizations() * @method static Resources\Currencies currencies() + * @method static Resources\CallLogs callLogs() * @method static Resources\DealFields dealFields() * @method static Resources\Deals deals() * @method static Resources\EmailMessages emailMessages() @@ -43,6 +44,7 @@ * @property-read Resources\ActivityFields $activityFields * @property-read Resources\ActivityTypes $activityTypes * @property-read Resources\Authorizations $authorizations + * @property-read Resources\CallLogs $callLogs * @property-read Resources\Currencies $currencies * @property-read Resources\DealFields $dealFields * @property-read Resources\Deals $deals diff --git a/src/Resources/CallLogs.php b/src/Resources/CallLogs.php new file mode 100644 index 0000000..f34edbe --- /dev/null +++ b/src/Resources/CallLogs.php @@ -0,0 +1,22 @@ +request->post(':id/recordings', compact('id', 'file')); + } +}