2023-10-25 15:15:01 -05:00
2023-10-25 15:15:01 -05:00
2023-07-18 14:20:10 +00:00
2023-10-25 15:11:00 -05:00
2023-04-17 15:08:25 -05:00
2023-07-18 09:16:15 -05:00

Plex API Client

Discord Npm package monthly downloads GitHub tag

Description

A typescript sdk for interacting with Plex.tv and Plex Media Server REST API's.

Documentation for all of the available endpoints can be found here

Installation

npm

npm install @lukehagar/plexjs

yarn

yarn add @lukehagar/plexjs

Usage

import {
  Configuration,
  ServerApi,
  DevicesApi,
  UserApi,
} from "@lukehagar/plexjs";
import dotenv from "dotenv";
dotenv.config();

const config = new Configuration({
  basePath: process.env.BASE_PATH,
  plexToken: process.env.PLEX_TOKEN,
});

new ServerApi(config).getServerCapabilities().then((resp) => console.log(resp));

new DevicesApi(config).getDevices().then((resp) => console.log(resp));

new UserApi(config).getUserDetails().then((resp) => console.log(resp));
Description
No description provided
Readme 43 MiB
Languages
TypeScript 100%