$uuid
$uuid : array
UUID holds the Folder UUID
Class Folder
Folder represents a single Folder of the SinusBot
__construct(\SinusBot\API $api, array $folder)
__construct
\SinusBot\API | $api | SinusBot API |
array | $folder | SiusBot Folder array |
addChildrenIfOK( $file) : \SinusBot\File
addChildrenIfOK checks recursive if the given file should be added as a child element. Determined via the "parent" attribute
$file |
file
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