diff --git a/source/index.html.md b/source/index.html.md index 6174a9b33c0..cd363859844 100644 --- a/source/index.html.md +++ b/source/index.html.md @@ -548,18 +548,30 @@ This endpoint returns MJPEG live stream from a camera. | Name | Located in | Description | Required | Type | | ---- | ---------- | ----------- | -------- | ---- | -| token | query | Timeline API_token | No | String | +| token | query | Timeline API_token | Yes | String | ```shell curl "https://my.timeline.is/live/:zone_id/stream?token=timeline_api_token" ``` -```shell -curl "https://my.timeline.is/live/:zone_id/stream" -H "Authorization: Bearer YOUR_OAUTH_TOKEN" +## HLS playlist +This endpoint returns HLS playlist +### HTTP Request +`GET https://my.timeline.is/live/:zone_id/playlist` + +**Parameters** +| Name | Located in | Description | Required | Type | +| ---- | ---------- | ----------- | -------- | ---- | +| token | query | Timeline API_token | Yes | String | + +```shell +curl "https://my.timeline.is/live/:zone_id/playlist?token=timeline_api_token" ``` +> The above command returns m3u file + # Perspectives @@ -874,8 +886,6 @@ curl "https://my.timelline.is/api/v3p/zones/5d1f0bf741092775efbddd71/audio_chall > The above command returns 200 status without body - - # Devices ## Get list of devices