$uuid
$uuid : string
UUID stores the SinusBot Bot UUID
Class API
API is the main class which will be used to connect to the SinusBot
getUsers() : array<mixed,\SinusBot\User>
getUsers
users
addUser(string $username, string $password, integer $privileges) : \SinusBot\User
addUser
string | $username | Username |
string | $password | Password |
integer | $privileges | Bitmask-Value |
user object
getUserByUUID(string $uuid) : \SinusBot\User
getUserByUUID
string | $uuid | User ID |
user object
getUserByName(string $username) : \SinusBot\User
getUserByName
string | $username | Username |
user object
getInstanceByUUID(string $uuid) : \SinusBot\Instance
getInstanceByUUID
string | $uuid | SinusBot instance UUID |
request(string $path, string $method = "GET", string $payload = null, boolean $encoded = false) : array
request executes a request to the SinusBot API
string | $path | /api/v1/ |
string | $method | http method |
string | $payload | http POST payload |
boolean | $encoded | when not encoded it will be JSON marshalled |
decoded JSON response