Authorizations
Response
200 - application/json
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->activities->getServerActivities(
);
if ($response->object !== null) {
// handle response
}{
"MediaContainer": {
"Activity": [
{
"cancellable": true,
"Context": {},
"progress": 49.5,
"Response": {},
"subtitle": "<string>",
"title": "<string>",
"type": "<string>",
"userID": 123,
"uuid": "<string>"
}
]
}
}List all activities on the server. Admins can see all activities but other users can only see their own
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->activities->getServerActivities(
);
if ($response->object !== null) {
// handle response
}{
"MediaContainer": {
"Activity": [
{
"cancellable": true,
"Context": {},
"progress": 49.5,
"Response": {},
"subtitle": "<string>",
"title": "<string>",
"type": "<string>",
"userID": 123,
"uuid": "<string>"
}
]
}
}Show child attributes
Was this page helpful?