using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Activities.GetServerActivitiesAsync();
// handle response
{
"MediaContainer": {
"size": 123,
"Activity": [
{
"uuid": "<string>",
"type": "<string>",
"cancellable": true,
"userID": 123,
"title": "<string>",
"subtitle": "<string>",
"progress": 123,
"Context": {
"librarySectionID": "<string>"
}
}
]
}
}
Get Server Activities
using LukeHagar.PlexAPI.SDK;
using LukeHagar.PlexAPI.SDK.Models.Components;
var sdk = new PlexAPI(accessToken: "<YOUR_API_KEY_HERE>");
var res = await sdk.Activities.GetServerActivitiesAsync();
// handle response
{
"MediaContainer": {
"size": 123,
"Activity": [
{
"uuid": "<string>",
"type": "<string>",
"cancellable": true,
"userID": 123,
"title": "<string>",
"subtitle": "<string>",
"progress": 123,
"Context": {
"librarySectionID": "<string>"
}
}
]
}
}
Plex Authentication Token
The Server Activities
The response is of type object
.