mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
3.4 KiB
3.4 KiB
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 |