mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-07 12:37:45 +00:00
34 lines
2.4 KiB
Markdown
34 lines
2.4 KiB
Markdown
# GetCompanionsDataResponse
|
|
|
|
## Example Usage
|
|
|
|
```typescript
|
|
import { GetCompanionsDataResponse } from "@lukehagar/plexjs/sdk/models/operations";
|
|
|
|
let value: GetCompanionsDataResponse = {
|
|
contentType: "<value>",
|
|
statusCode: 301,
|
|
rawResponse: new Response("{\"message\": \"hello world\"}", {
|
|
headers: { "Content-Type": "application/json" },
|
|
}),
|
|
responseBodies: [
|
|
{
|
|
identifier: "tv.plex.sonos",
|
|
baseURL: "https://sonos.plex.tv",
|
|
title: "Sonos",
|
|
linkURL: "https://sonos.plex.tv/link",
|
|
provides: "client,player",
|
|
token: "<value>",
|
|
},
|
|
],
|
|
};
|
|
```
|
|
|
|
## 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 |
|
|
| `responseBodies` | [operations.ResponseBody](../../../sdk/models/operations/responsebody.md)[] | :heavy_minus_sign: | Companions Data | |