-
-
Notifications
You must be signed in to change notification settings - Fork 0
API Docs
This documentation contains all currently available query options as well as the resulting answers, which can currently be implemented via the interface of the API extension.
Request URL: "../index.php?controller=api&action=api"
Required Parameters: $_POST["client"], $_POST["secret"]
Response: string JSON { "valid": true, "response": "access granted" }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 1.0.14 of the extension API interface
Request URL: "../index.php?controller=api&action=versionsGet"
Required Parameters: $_POST["client"], $_POST["secret"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=usersGet"
Required Parameters: $_POST["client"], $_POST["secret"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Request URL: "../index.php?controller=api&action=userGet"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*user-id*/
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=userFindByUsername"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["username"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=userFindByEmail"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["email"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Request URL: "../index.php?controller=api&action=userAdd"
Required Parameters: $_POST["client"], $_POST["secret"], Array ( $_POST["data"] => Array ( ["username"], ["group_id"], ["init_pw"], ["first_name"], ["last_name"], ["email"], ["lang"], ["fixed_virtual_servers"] => Array ( int 'INSTANCE-ID' => Array ( int 'VIRTUAL-SERVER-ID', int 'VIRTUAL-SERVER-ID', ... ) ) ) )
Response: string JSON { "valid": true, "response": "NEW USER-ID" }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.10 of the extension API interface
Request URL: "../index.php?controller=api&action=userModify"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*user-id*/
Optional Parameters: Array ( $_POST["data"] => Array ( ["username"], ["group_id"], ["init_pw"], ["first_name"], ["last_name"], ["email"], ["lang"], ["fixed_virtual_servers"] => Array ( int 'INSTANCE-ID' => Array ( int 'VIRTUAL-SERVER-ID', int 'VIRTUAL-SERVER-ID', ... ) ) ) )
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Request URL: "../index.php?controller=api&action=userDel"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*user-id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=rolesGet"
Required Parameters: $_POST["client"], $_POST["secret"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Request URL: "../index.php?controller=api&action=roleGet"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*role-id*/
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=roleFindByName"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["name"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=roleDel"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*role-id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=instancesGet"
Required Parameters: $_POST["client"], $_POST["secret"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Request URL: "../index.php?controller=api&action=instanceGet"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=instanceFindByIp"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["ip"]
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.3 of the extension API interface
Request URL: "../index.php?controller=api&action=instanceDel"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.8 of the extension API interface
Request URL: "../index.php?controller=api&action=instanceGetServerList"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.9 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerGet"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtual server id*/
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.9 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerCreate"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/
Optional Parameters: $_POST["properties"] /*server properties*/
Response: string JSON { "valid": true, "response": "NEW VIRTUALSERVER-ID" }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.9 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerModify"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/, $_POST["sid"] /*virtual server id*/
$_POST["properties"] /*server properties*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.9 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerDelete"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtualserver id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.9 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerStart"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtualserver id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.9 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerStop"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtualserver id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 0.0.7 of the extension API interface
Request URL: "../index.php?controller=api&action=vServerViewGet"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/ ,
$_POST["sid"] /*virtual server id*/
Optional Parameters: $_POST["flags"] = true /*Displays the country flags of the respective clients*/,
$_POST["style"] = "old" /*Shows the viewer in the usual TS3 style*/
$_POST["exclude_query_clients"] = false /* false: Show Query Clients | true: Hide Query Clients
$_POST["format"] = "" /* "json": Response in the form of a JSON structure that is similar to the structure provided by the Planet TeamSpeak Simple REST (server-mode) API and is fully compatible with the jquery-ts3viewer plug-in
Response: string JSON { "valid": true, "response": string JSON { DATA } }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 1.0.5 of the extension API interface
Request URL: "../index.php?controller=api&action=runCron"
Response: string JSON { "valid": true, "response": "MICROTIME" }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 1.0.6 of the extension API interface and only in conjunction with the extension module Simple Bots
Request URL: "../index.php?controller=api&action=simpleBotIsRunning"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtualserver id*/
Response: string JSON { "valid": true, "response": "CURRENT BOT UID" }
Error: string JSON { "valid": false, "error": "MESSAGE || (BOOL) FALSE" }
Supported from version 1.0.6 of the extension API interface and only in conjunction with the extension module Simple Bots
Request URL: "../index.php?controller=api&action=simpleBotRun"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtualserver id*/
Optional Parameters: $_POST["lang"] /*de_DE, en_GB*/,
$_POST["sid"] /*virtualserver id*/
Response: string JSON { "valid": true, "response": "CURRENT BOT UID" }
Error: string JSON { "valid": false, "error": "MESSAGE" }
Supported from version 1.0.6 of the extension API interface and only in conjunction with the extension module Simple Bots
Request URL: "../index.php?controller=api&action=simpleBotStop"
Required Parameters: $_POST["client"], $_POST["secret"], $_POST["id"] /*instance-id*/,
$_POST["sid"] /*virtualserver id*/
Response: string JSON { "valid": true }
Error: string JSON { "valid": false, "error": "MESSAGE" }
© Copyright 2022 by DW Web-Engineering