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->updater->getUpdateStatus(
);
if ($response->object !== null) {
// handle response
}{
"MediaContainer": {
"autoUpdateVersion": 123,
"canInstall": true,
"checkedAt": 123,
"downloadURL": "<string>",
"Release": [
{
"added": "<string>",
"downloadURL": "<string>",
"fixed": "<string>",
"key": "<string>",
"state": "available",
"version": "<string>"
}
],
"status": 123
}
}Get the status of updating the server
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->updater->getUpdateStatus(
);
if ($response->object !== null) {
// handle response
}{
"MediaContainer": {
"autoUpdateVersion": 123,
"canInstall": true,
"checkedAt": 123,
"downloadURL": "<string>",
"Release": [
{
"added": "<string>",
"downloadURL": "<string>",
"fixed": "<string>",
"key": "<string>",
"state": "available",
"version": "<string>"
}
],
"status": 123
}
}Documentation Index
Fetch the complete documentation index at: https://plexapi.dev/llms.txt
Use this file to discover all available pages before exploring further.
The token which identifies the user accessing the PMS. This can be either:
JWT tokens provide better security with:
OK
Show child attributes
Was this page helpful?