Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
migalenkom committed Jul 28, 2021
1 parent 49709b1 commit 3caa9a9
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3caa9a9

Please sign in to comment.