From efd6f2e0858107f41632bc51e9a5847230073a1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gi=C3=B2=20Diani?= Date: Fri, 11 Oct 2024 11:52:28 +0200 Subject: [PATCH] =?UTF-8?q?Beschreibung=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VANA-php/README.md | 6 ++++++ VANA-php/app/Srgssr/Episode.php | 14 -------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/VANA-php/README.md b/VANA-php/README.md index d7d9cd7..373ff7b 100644 --- a/VANA-php/README.md +++ b/VANA-php/README.md @@ -14,6 +14,12 @@ fiktives Beispiel: artisan app:add-endpoint https://api.srgssr.ch/videometadata/v2/ "key:AbC123def456GhI789JklmnOpQrstuVw;secret:987zyx654wvu3210" ``` +## 10 neuste Episoden abspeichern +Mittels dem folgenden Befehl werden die zehn neusten Arena Sendungen heruntergeladen und in die Datenbank abgespeichert. +```bash +artisan srgssr:save-latest +``` + diff --git a/VANA-php/app/Srgssr/Episode.php b/VANA-php/app/Srgssr/Episode.php index 21edcf9..7eb4f13 100644 --- a/VANA-php/app/Srgssr/Episode.php +++ b/VANA-php/app/Srgssr/Episode.php @@ -31,17 +31,6 @@ class Episode extends Api } - - /** - * Save Episode to db. - */ - public function saveEpisode(string $urn){ - - $response = Http::withHeaders($this->headers)->withQueryParameters([ - 'bu' => 'srf', - ])->get($this->endpoint.'latest_episodes/shows/09784065-687b-4b60-bd23-9ed0d2d43cdc'); - } - /** * Retrieve 10 latest episodes and save to db. */ @@ -74,7 +63,4 @@ class Episode extends Api } } - - - }