Skip to content

Latest commit

 

History

History
47 lines (42 loc) · 3.64 KB

getcountrieslibraryresponse.md

File metadata and controls

47 lines (42 loc) · 3.64 KB

GetCountriesLibraryResponse

Example Usage

import { GetCountriesLibraryResponse } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetCountriesLibraryResponse = {
  contentType: "<value>",
  statusCode: 404,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  object: {
    mediaContainer: {
      size: 50,
      allowSync: false,
      art: "/:/resources/show-fanart.jpg",
      content: "secondary",
      identifier: "com.plexapp.plugins.library",
      mediaTagPrefix: "/system/bundle/media/flags/",
      mediaTagVersion: 1734362201,
      nocache: true,
      thumb: "/:/resources/show.png",
      title1: "TV Series",
      title2: "By Starring Actor",
      viewGroup: "secondary",
      directory: [
        {
          fastKey: "/library/sections/2/all?country=15491",
          key: "15491",
          title: "Japan",
        },
      ],
    },
  },
};

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.GetCountriesLibraryResponseBody Successful response containing media container data.