declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->butler->getButlerTasks(
);
if ($response->object !== null) {
// handle response
}{
"ButlerTasks": {
"ButlerTask": [
{
"description": "<string>",
"enabled": true,
"interval": 123,
"name": "<string>",
"scheduleRandomized": true,
"title": "<string>"
}
]
}
}Get the list of butler tasks and their scheduling
declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->butler->getButlerTasks(
);
if ($response->object !== null) {
// handle response
}{
"ButlerTasks": {
"ButlerTask": [
{
"description": "<string>",
"enabled": true,
"interval": 123,
"name": "<string>",
"scheduleRandomized": true,
"title": "<string>"
}
]
}
}The token which identifies the user accessing the PMS. This can be either:
JWT tokens provide better security with:
Butler tasks
Show child attributes
Show child attributes
A user-friendly description of the task
Whether this task is enabled or not
The interval (in days) of when this task is run. A value of 1 is run every day, 7 is every week, etc.
The name of the task
Indicates whether the timing of the task is randomized within the butler interval
A user-friendly title of the task
Was this page helpful?