declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
use LukeHagar\Plex_API\Models\Operations;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->library->getRefreshLibraryMetadata(
sectionKey: 9518,
force: Operations\Force::One
);
if ($response->statusCode === 200) {
// handle response
}
This response does not have an example.
This endpoint Refreshes all the Metadata of the library.
declare(strict_types=1);
require 'vendor/autoload.php';
use LukeHagar\Plex_API;
use LukeHagar\Plex_API\Models\Operations;
$sdk = Plex_API\PlexAPI::builder()
->setSecurity(
'<YOUR_API_KEY_HERE>'
)
->build();
$response = $sdk->library->getRefreshLibraryMetadata(
sectionKey: 9518,
force: Operations\Force::One
);
if ($response->statusCode === 200) {
// handle response
}
This response does not have an example.
Plex Authentication Token
The unique key of the Plex library. Note: This is unique in the context of the Plex server.
9518
Force the refresh even if the library is already being refreshed.
0
, 1
0
The library is refreshing