From 24aa27fd92f377c5f39d2ae84b7b9980ecd683c2 Mon Sep 17 00:00:00 2001 From: Yechiel Date: Sun, 24 Nov 2024 00:23:47 -0500 Subject: [PATCH] fixup --- src/RingCentral.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/RingCentral.php b/src/RingCentral.php index e166f65..4f010c5 100644 --- a/src/RingCentral.php +++ b/src/RingCentral.php @@ -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';