Beschreibung hinzugefügt.

master
Giò Diani 2024-10-11 11:52:28 +02:00
parent 4f8dc1d9e7
commit efd6f2e085
2 changed files with 6 additions and 14 deletions

View File

@ -14,6 +14,12 @@ fiktives Beispiel:
artisan app:add-endpoint https://api.srgssr.ch/videometadata/v2/ "key:AbC123def456GhI789JklmnOpQrstuVw;secret:987zyx654wvu3210" 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
```

View File

@ -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. * Retrieve 10 latest episodes and save to db.
*/ */
@ -74,7 +63,4 @@ class Episode extends Api
} }
} }
} }