mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
3.9 KiB
3.9 KiB
GetSessionHistoryResponse
Example Usage
import { GetSessionHistoryResponse } from "@lukehagar/plexjs/sdk/models/operations";
import { RFCDate } from "@lukehagar/plexjs/sdk/types";
let value: GetSessionHistoryResponse = {
contentType: "<value>",
statusCode: 503,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
object: {
mediaContainer: {
size: 10855,
metadata: [
{
historyKey: "/status/sessions/history/1",
key: "/library/metadata/32171",
ratingKey: "32171",
librarySectionID: "2",
parentKey: "/library/metadata/32170",
grandparentKey: "/library/metadata/32132",
title: "The Noise That Blue Makes",
grandparentTitle: "Taskmaster",
type: "episode",
thumb: "/library/metadata/32171/thumb/-1",
parentThumb: "/library/metadata/32170/thumb/1654134301",
grandparentThumb: "/library/metadata/32132/thumb/1703933346",
grandparentArt: "/library/metadata/32132/art/1703933346",
index: 1,
parentIndex: 13,
originallyAvailableAt: new RFCDate("2022-04-14T00:00:00Z"),
viewedAt: 1654139223,
accountID: 1,
deviceID: 5,
},
],
},
},
};
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.GetSessionHistoryResponseBody | ➖ | List of Plex Sessions |