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 } } - - - }