Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 3.45 KB

getmediaprovidersresponse.md

File metadata and controls

46 lines (41 loc) · 3.45 KB

GetMediaProvidersResponse

Example Usage

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

let value: GetMediaProvidersResponse = {
  contentType: "<value>",
  statusCode: 511,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  object: {
    mediaContainer: {
      mediaProvider: [
        {
          feature: [
            {
              type: "<value>",
              flavor: "global",
              scrobbleKey: "/:/scrobble/new",
              unscrobbleKey: "/:/unscrobble/new",
              action: [
                {
                  id: "addToContinueWatching",
                  key: "/actions/addToContinueWatching",
                },
              ],
            },
          ],
        },
      ],
    },
  },
};

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.GetMediaProvidersResponseBody Media providers and their features