mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
3.4 KiB
3.4 KiB
GetPlaylistsResponse
Example Usage
import { GetPlaylistsResponse } from "@lukehagar/plexjs/sdk/models/operations";
let value: GetPlaylistsResponse = {
contentType: "<value>",
statusCode: 306,
rawResponse: new Response("{\"message\": \"hello world\"}", {
headers: { "Content-Type": "application/json" },
}),
object: {
mediaContainer: {
size: 4,
metadata: [
{
ratingKey: "92",
key: "/playlists/92/items",
guid:
"com.plexapp.agents.none://7ca5aaef-58e8-4828-9e21-c009c97f2903",
type: "playlist",
title: "Static Playlist",
summary: "A Great Playlist",
smart: false,
playlistType: "video",
composite: "/playlists/92/composite/1705716440",
icon: "playlist://image.smart",
viewCount: 1,
lastViewedAt: 1705716298,
duration: 7328000,
leafCount: 32,
addedAt: 1705716298,
updatedAt: 1705716440,
},
],
},
},
};
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.GetPlaylistsResponseBody | ➖ | returns all playlists |