Skip to content

Commit 8b9b83e

Browse files
authored
Merge pull request #49 from pipedrive/GRAL-2095-hotfix
GRAL-2095 Added missing parameter in the readme for attachAnAudioFileToTheCallLog
2 parents e9e2833 + 8ebfce7 commit 8b9b83e

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,7 @@ function attachAnAudioFileToTheCallLog($id, $collect)
954954
|-----------|------|-------------|
955955
| id | ```required``` | The ID received when you create the call log |
956956
| file | ```required``` | Audio file supported by the HTML5 specification |
957+
| mime_type | ```required``` | The mime type of the file, according to html5 standards (eg.: audio/wave for a .wav file )|
957958

958959
#### Example Usage
959960

src/Controllers/BaseController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class BaseController
2424
* User-agent to be sent with API calls
2525
* @var string
2626
*/
27-
const USER_AGENT = 'Pipedrive-SDK-PHP-3.0.0';
27+
const USER_AGENT = 'Pipedrive-SDK-PHP-3.1.1';
2828

2929
/**
3030
* HttpCallBack instance associated with this controller

src/Controllers/CallLogsController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,6 @@ public function attachAnAudioFileToTheCallLog(
251251
//validate and preprocess url
252252
$_queryUrl = APIHelper::cleanUrl(Configuration::getBaseUri() . $_queryBuilder);
253253

254-
echo $this->val($options, 'mime_type');
255-
256254
//prepare headers
257255
$_headers = array (
258256
'user-agent' => BaseController::USER_AGENT,

0 commit comments

Comments
 (0)