2023-04-18 20:19:28 -05:00
2023-04-18 16:05:39 -05:00
2023-04-18 16:04:31 -05:00
2023-04-18 21:13:34 +00:00
2023-04-17 15:08:25 -05:00
2023-04-18 21:13:34 +00:00
2023-04-18 20:19:28 -05:00

Plex API Client

Description

A typescript sdk for accessing the Plex.tv and Plex Media Server REST API's.

Documentation for all of the available endpoints can be found here: https://plexapi.dev

Installation

npm

npm install @lukehagar/plexjs

yarn

yarn add @lukehagar/plexjs

Usage

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

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

const serverApiClient = new ServerApi(config);

serverApiClient.getServerCapabilities().then((resp) => console.log(resp));
Description
No description provided
Readme 43 MiB
Languages
TypeScript 100%