Beschreibung hinzugefügt.
parent
4f8dc1d9e7
commit
efd6f2e085
|
@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -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
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue