Skip to content

Commit

Permalink
Merge pull request #113 from AIUDO/feature/callLogs
Browse files Browse the repository at this point in the history
Added callLogs resource
  • Loading branch information
IsraelOrtuno authored Jul 1, 2021
2 parents 15d6151 + 391660d commit 90afeba
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Pipedrive.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/PipedriveFacade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down
22 changes: 22 additions & 0 deletions src/Resources/CallLogs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Devio\Pipedrive\Resources;

use Devio\Pipedrive\Resources\Basics\Resource;

class CallLogs extends Resource
{
protected $enabled = ['all', 'find', 'add', 'delete', 'addRecording'];


/**
* Upload a recording file (audio) to a callLog
*
* @param $id
* @param \SplFileInfo $file
* @return Response
*/
public function addRecording($id, \SplFileInfo $file) {
return $this->request->post(':id/recordings', compact('id', 'file'));
}
}

0 comments on commit 90afeba

Please sign in to comment.