Generates an access token for stream playback when using private authorization.
Parameters
params: object
params.camera: Uid aka string
Pattern: ^[a-zA-Z0-9_-]+$
Unique identifier used throughout the system
Unique stream identifier for which to generate the access token
params.stream: Uid aka null|string
optional nullable
Pattern: ^[a-zA-Z0-9_-]+$
Unique identifier used throughout the system
Unique stream identifier within the installation
params.ttl: integer
optional
Default:
3600
Token lifetime in seconds (0 = unlimited, not recommended)
params.live: boolean
optional
Default:
true
Allow live viewing
params.copy: boolean
optional
Default:
true
Allow DVR downloading
params.view: boolean
optional
Default:
true
Allow DVR viewing
params.from: null|integer
optional nullable
Default:
0
DVR time range lower bound in seconds (0 = unlimited)
params.to: null|integer
optional nullable
Default:
0
DVR time range upper bound in seconds (0 = unlimited, must be >= from)
params.whitelist: array
optional
Default:
[]
List of IP addresses allowed access without authentication
IP whitelist for unauthorized access
Result
result: string
|
POST |
|
JSON
|
|
200 |
|
JSON
|
|
400 |
|
JSON
|
|
500 |
|
Server error |