mirror of
https://github.com/kasmtech/KasmVNC.git
synced 2025-08-10 16:17:35 +02:00
Updated API (markdown)
6
API.md
6
API.md
@ -6,6 +6,7 @@ All API calls require owner credentials.
|
||||
Get a screenshot of the current session. You can pass a height and width that do not match the current aspect ratio, it will return the requested width with the height adjusted to keep the aspect ratio.
|
||||
|
||||
/api/get_screenshot
|
||||
|
||||
width - defaults to actual remote screen width
|
||||
height - defaults to actual remote screen height
|
||||
quality - JPEG quality, defaults to 7
|
||||
@ -15,6 +16,7 @@ Get a screenshot of the current session. You can pass a height and width that do
|
||||
Add another user to the session.
|
||||
|
||||
/api/create_user
|
||||
|
||||
name - the username
|
||||
password - the requested password
|
||||
write - set to 'true' if the user should have write permissions (control of mouse and keyboard)
|
||||
@ -25,10 +27,12 @@ example: /api/create_user?name=fred&password=123&write=true
|
||||
Remove a user from the KasmVNC session
|
||||
|
||||
/api/remove_user
|
||||
name - username of the user to remove
|
||||
|
||||
name - username of the user to remove
|
||||
|
||||
### Give control to another user
|
||||
Give session control (mouse and keyboard control) to another user
|
||||
|
||||
/api/give_control
|
||||
|
||||
name - Username to give control to
|
Reference in New Issue
Block a user