mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
27 lines
562 B
TypeScript
27 lines
562 B
TypeScript
/*
|
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
*/
|
|
|
|
import dotenv from "dotenv";
|
|
dotenv.config();
|
|
/**
|
|
* Example usage of the @lukehagar/plexjs SDK
|
|
*
|
|
* To run this example from the examples directory:
|
|
* npm run build && npx tsx serverGetServerCapabilities.example.ts
|
|
*/
|
|
|
|
import { PlexAPI } from "@lukehagar/plexjs";
|
|
|
|
const plexAPI = new PlexAPI({
|
|
accessToken: "<YOUR_API_KEY_HERE>",
|
|
});
|
|
|
|
async function main() {
|
|
const result = await plexAPI.server.getServerCapabilities();
|
|
|
|
console.log(result);
|
|
}
|
|
|
|
main().catch(console.error);
|