No description
Find a file
2019-01-16 23:22:46 +01:00
config added features 2019-01-15 01:46:39 +01:00
features fixed client channelId 2019-01-16 23:07:38 +01:00
request initial commit 2019-01-14 21:07:11 +01:00
response initial commit 2019-01-14 21:07:11 +01:00
service fixed client channelId 2019-01-16 23:07:38 +01:00
stringer initial commit 2019-01-14 21:07:11 +01:00
.dockerignore Docker 2019-01-16 23:22:46 +01:00
.gitignore initial commit 2019-01-14 21:07:11 +01:00
DOCKERFILE Docker 2019-01-16 23:22:46 +01:00
main.go added server info 2019-01-16 22:01:48 +01:00
README.md fixed client channelId 2019-01-16 23:07:38 +01:00

go-tsviewer [WIP]

WARNING This API is not usable ATM

A REST API made for TS3 Viewer.

Features

Config

The config file is generated automatically on first startup.

{
    "ip": "127.0.0.1",              // Server IP
    "port": 10011,                  // Dataquery Port
    "user": {
        "name": "serveradmin",      // Username
        "password": ""              // Password
    },
    "server": {
        "port": 9987                // Port of the target server
    }
}

URL-Parameter

Name Type Description
pretty bool pretty-prints JSON
envelope bool wraps JSON in data array

Channels

  • GET /v1/channels/:id
  • GET /v1/channels
{
    "databaseId": 1,
    "channelId": 1,
    "nickname": "serveradmin from 127.0.0.1:58359",
    "type": 1,
    "away": false,
    "awayMessage": ""
}

Clients

  • GET /v1/clients/:id
  • GET /v1/clients/
{
    "id": 1,
    "subchannels": [
        ... (contains all subchannel)
    ],
    "name": "main1",
    "totalClients": 0,
    "neededSubscribePower": 0
}

Server

  • GET /v1/server/info
{
    "name": "TeamSpeak ]I[ Server",
    "status": "online",
    "version": "3.5.1 [Build: 1545076855]",
    "welcomeMessage": "Welcome to TeamSpeak, check [URL]www.teamspeak.com[/URL] for latest information",
    "maxClients": 32,
    "clientsOnline": 2,
    "reservedSlots": 0,
    "uptime": 5976,
    "totalPing": 0,
    "minAndroidVersion": 1502275280,
    "minClientVersion": 1513163251,
    "miniOSVersion": 1502275280
}