Go to documentation repository
Documentation for Intellect 4.11.0-4.11.3. Documentation for other versions of Intellect is available too.
To receive a pre-authorized link to the camera (to receive both live or archived video), you must:
- Execute a request to get a token;
- Execute a request for the received token.
General request format to get a token:
GET http://IP-address:port/web2/secure/video/action.do?version={version}&sessionid={sessionid}&video_in={video_in}&enable_token_auth={enable_token_auth}&valid_token_hours={valid_token_hours}&login={login}&password={password}
Request parameters:
Parameter | Is required | Description |
---|---|---|
version | Yes | See Product version |
video_in | Yes | Camera ID in the format "TYPE:ID", for example "CAM:1" |
sessionid | No | Session ID |
targetid | Yes | Matches cam.id |
login | No | Intellect username, if set |
password | No | Intellect user password, if set |
enable_token_auth | Yes | Enable authorization by token =1. |
valid_token_hours | No | Signature validation time (in hours). The maximum value is a week. The default value is 12 hours. |
Request example:
GET http://127.0.0.1:8085/web2/secure/video/action.do?version=4.10.0.0&sessionid=FC126734&video_in=CAM:1&enable_token_auth=1&valid_token_hours=1&login=USER&password=PASS
Response example:
{ "path" : "action.do?hmac=GAqUa429sjY2E9jCTpuYeaMqReW3Y7HI" }
Response parameters:
Parameter | Description |
---|---|
hmac | Token |
General request format for the received token via Web server 2.0:
GET http://IP-address:port/web2/secure/video/action.do?hmac={hmac}
Request parameters:
Parameter | Is required | Description |
---|---|---|
hmac | Yes | Earlier received token |
Request example:
GET http://127.0.0.1:8085/web2/secure/video/action.do?hmac=GAqUa429sjY2E9jCTpuYeaMqReW3Y7HI
General request format for the received token via Web-server 1:
Note
This request method is deprecated. It is recommended to make a request via the Web server 2.0 module.
GET http://IP-address:{port}/action.do?hmac={hmac}
Request parameters:
Parameter | Is required | Description |
---|---|---|
port | Yes | Port number specified for HTTP Server connection on the Web server object settings panel (see Setting the parameters of connecting Clients to the Web-server). |
hmac | Yes | Earlier received token |
Request example:
GET http://127.0.0.1:80/action.do?hmac=GAqUa429sjY2E9jCTpuYeaMqReW3Y7HI