Files
plexjs/docs/models/getlibrariesresponse.md

3.4 KiB
Raw Blame History

GetLibrariesResponse

Example Usage

import { GetLibrariesResponse } from "@lukehagar/plexjs";

let value: GetLibrariesResponse = {
    contentType: "<value>",
    statusCode: 264555,
    rawResponse: new Response('{"message": "hello world"}', {
        headers: { "Content-Type": "application/json" },
    }),
    object: {
        mediaContainer: {
            size: 5,
            allowSync: false,
            title1: "Plex Library",
            directory: [
                {
                    allowSync: true,
                    art: "/:/resources/movie-fanart.jpg",
                    composite: "/library/sections/1/composite/1705615584",
                    filters: true,
                    refreshing: false,
                    thumb: "/:/resources/movie.png",
                    key: "1",
                    type: "movie",
                    title: "Movies",
                    agent: "tv.plex.agents.movie",
                    scanner: "Plex Movie",
                    language: "en-US",
                    uuid: "322a231a-b7f7-49f5-920f-14c61199cd30",
                    updatedAt: 1705615634,
                    createdAt: 1654131312,
                    scannedAt: 1705615584,
                    content: true,
                    directory: true,
                    contentChangedAt: 3192854,
                    hidden: 0,
                    location: [
                        {
                            id: 1,
                            path: "/movies",
                        },
                    ],
                },
            ],
        },
    },
};

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 models.GetLibrariesResponseBody The libraries available on the Server