Difference between revisions of "API Room Status"
IVSWikiBlue (talk | contribs) (Created page with "This API provides the current status for a specified room. ===Resource URL=== <pre>http://valt.example.com/api/v3/rooms/{roomid}/status</pre> ''Replace {roomid} with the actu...") |
(No difference)
|
Latest revision as of 13:55, 14 April 2020
This API provides the current status for a specified room.
Contents
Resource URL
http://valt.example.com/api/v3/rooms/{roomid}/status
Replace {roomid} with the actual id number of the room. Rooms are numbered sequentially when added to VALT.
Resource Information
Method | GET |
Response Type | JSON |
Authentication Required | Yes |
Parameters
No parameters can be passed to this call.
Response
Code | Reason |
---|---|
200 | Request Successful |
401 | Unauthorized |
404 | Room ID Not Found |
data | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
status | Current Room Status
| ||||||||||||
record | true = room is currently recording, false = room is not recording | ||||||||||||
record_id | ID number for the active recording (will only return if record = true.) | ||||||||||||
record_access | true = current authenticated user has access to the recording, false = current authenticated users does not have access to the recording (will only return if record = true.) |
Examples
Request
https://ivstest1.ad.ipivs.com/api/v3/rooms/37/status?access_token=e82632d19c523678fea3d1016c6df9e9
Successful Response
Sample response is shown with line breaks to make it more readable. Actual responses will not include line breaks.
{ "data":{ "status": "available", "record": false } }
Failure Response
{"error":{"code":401,"message":"No API key provided"}}