Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
migalenkom committed Jul 14, 2021
1 parent b240b88 commit d76ffe2
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions source/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,7 @@ curl "https://my.timeline.is/api/v3p/devices" -H "Authorization: Bearer YOUR_OAU
## Open tunnel

This endpoint allows you to open tunnel to the device if its on-line.
The tunnel is active 1 hour since opening time.

### HTTP Request
`POST https://my.timeline.is/api/v3p/devices/:device_id/open_tunnel`
Expand All @@ -870,16 +871,25 @@ This endpoint allows you to open tunnel to the device if its on-line.

```shell
curl "https://my.timelline.is/api/v3p/devices/5d1f0bf741092775efbddd71/open_tunnel" \
--data '{ "port": 8080 }' \
--data '{ "port": 554 }' \
--request POST \
-H "Authorization: Bearer YOUR_OAUTH_TOKEN" \
-H "Content-Type: application/json"
```
> The above command returns JSON structured like this:
Once you get a response you can use port in VLC player.
The rtsp URL will look like:
rtsp://admin:password@timeline.is:37310/Streaming/Channels/102

```json
{
"data": {}
"data": {
"37310": {
"port": 37310,
"to": 554,
"active_till": "2021-07-14T10:35:12.461+01:00"
}
}
}
```

Expand Down

0 comments on commit d76ffe2

Please sign in to comment.