Files
plexjs/examples/serverGetServerCapabilities.example.ts

27 lines
547 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.ts
*/
import { PlexAPI } from "@lukehagar/plexjs";
const plexAPI = new PlexAPI({
accessToken: "<YOUR_API_KEY_HERE>",
});
async function main() {
const result = await plexAPI.getServerCapabilities();
console.log(result);
}
main().catch(console.error);