Files
plexjs/docs/sdk/models/operations/getuserfriendsresponse.md

2.5 KiB
Raw Blame History

GetUserFriendsResponse

Example Usage

import { GetUserFriendsResponse, Status } from "@lukehagar/plexjs/sdk/models/operations";

let value: GetUserFriendsResponse = {
  contentType: "<value>",
  statusCode: 100,
  rawResponse: new Response("{\"message\": \"hello world\"}", {
    headers: { "Content-Type": "application/json" },
  }),
  friends: [
    {
      email: "username@email.com",
      friendlyName: "exampleUser",
      home: true,
      id: 0,
      restricted: false,
      sharedServers: [
        {},
      ],
      sharedSources: [
        {},
      ],
      status: Status.Accepted,
      thumb: "https://plex.tv/users/7d1916e0d8f6e76b/avatar?c=1694481578",
      title: "username123",
      username: "username123",
      uuid: "7d1916e0d8f6e76b",
    },
  ],
};

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
friends operations.Friend[] Friends Data