mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
4.6 KiB
4.6 KiB
GetUsersServer
Example Usage
import { AllLibraries, GetUsersServer, Owned, Pending } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetUsersServer = {
id: 907759180,
serverId: 9999999,
machineIdentifier: "fbb8aa6be6e0c997c6268bc2b4431c8807f70a3",
name: "ConnectedUserFlix",
lastSeenAt: 1556281940,
numLibraries: 16,
allLibraries: AllLibraries.Enable,
owned: Owned.Enable,
pending: Pending.Enable,
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
number | ✔️ | Unique ID of the server of the connected user | 907759180 |
serverId |
number | ✔️ | ID of the actual Plex server. | 9999999 |
machineIdentifier |
string | ✔️ | Machine identifier of the Plex server. | fbb8aa6be6e0c997c6268bc2b4431c8807f70a3 |
name |
string | ✔️ | Name of the Plex server of the connected user. | ConnectedUserFlix |
lastSeenAt |
number | ✔️ | N/A | 1556281940 |
numLibraries |
number | ✔️ | Number of libraries in the server this user has access to. | 16 |
allLibraries |
operations.AllLibraries | ➖ | N/A | 1 |
owned |
operations.Owned | ➖ | N/A | 1 |
pending |
operations.Pending | ➖ | N/A | 1 |