From 3caa9a9e1897443f233fbc2b6a64adccc76d400b Mon Sep 17 00:00:00 2001 From: Mike Myhalenko Date: Wed, 28 Jul 2021 15:25:33 +0300 Subject: [PATCH] update doc --- source/index.html.md | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) 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