mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 04:20:46 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.580.1
This commit is contained in:
24
examples/serverGetServerCapabilities.example.ts
Normal file
24
examples/serverGetServerCapabilities.example.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
/**
|
||||
* 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);
|
||||
Reference in New Issue
Block a user