mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-09 20:47:47 +00:00
46 lines
3.4 KiB
Markdown
46 lines
3.4 KiB
Markdown
# GetMediaProvidersResponse
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
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* | :heavy_check_mark: | HTTP response content type for this operation |
|
|
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
|
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
|
| `object` | [operations.GetMediaProvidersResponseBody](../../../sdk/models/operations/getmediaprovidersresponsebody.md) | :heavy_minus_sign: | Media providers and their features | |