mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
3.6 KiB
3.6 KiB
GetMyPlexAccountResponse
Example Usage
import { GetMyPlexAccountResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetMyPlexAccountResponse = {
contentType: "<value>",
statusCode: 504,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
object: {
myPlex: {
authToken: "Z5v-PrNASDFpsaCi3CPK7",
username: "example.email@mail.com",
mappingState: "mapped",
signInState: "ok",
publicAddress: "140.20.68.140",
publicPort: 32400,
privateAddress: "10.10.10.47",
privatePort: 32400,
subscriptionFeatures:
"federated-auth,hardware_transcoding,home,hwtranscode,item_clusters,kevin-bacon,livetv,loudness,lyrics,music-analysis,music_videos,pass,photo_autotags,photos-v5,photosV6-edit,photosV6-tv-albums,premium_music_metadata,radio,server-manager,session_bandwidth_restrictions,session_kick,shared-radio,sync,trailers,tuner-sharing,type-first,unsupportedtuners,webhooks",
subscriptionState: "Active",
},
},
};
Fields
| Field | Type | Required | Description |
|---|---|---|---|
contentType |
string | ✔️ | HTTP response content type for this operation |
statusCode |
number | ✔️ | HTTP response status code for this operation |
rawResponse |
Response | ✔️ | Raw HTTP response; suitable for custom response parsing |
object |
operations.GetMyPlexAccountResponseBody | ➖ | MyPlex Account |