Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
yparitcher committed Nov 24, 2024
1 parent 309d35d commit e3f1be1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/RingCentral.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,15 +244,6 @@ public function getRecordingById(string $recordingId): Response {
return $response;
}

public function saveRecordingById(string $recordingId, string $disk, string $path): string|false {
$response = $this->getRecordingById($recordingId);
$ext = ($response->header('Content-Type') == 'audio/mpeg') ? '.mp3' : '.wav';
$name = Str::random(40).$ext;
$path = trim($path, '/').'/'.$name;
$result = Storage::disk($disk)->put($path, $response->body());
return $result ? $path : false;
}

public function saveRecordingById(string $recordingId, ?string $disk = null, string $path = ''): string|false {
$response = $this->getRecordingById($recordingId);
$ext = ($response->header('Content-Type') == 'audio/mpeg') ? '.mp3' : '.wav';
Expand Down

0 comments on commit e3f1be1

Please sign in to comment.