Files
Prowlarr-TS-SDK/examples/apiInfoGetApi.example.ts

29 lines
539 B
TypeScript

/*
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
*/
import dotenv from "dotenv";
dotenv.config();
/**
* Example usage of the prowlarr SDK
*
* To run this example from the examples directory:
* npm run build && npx tsx apiInfoGetApi.ts
*/
import { Prowlarr } from "prowlarr";
const prowlarr = new Prowlarr({
security: {
xApiKey: process.env["PROWLARR_X_API_KEY"] ?? "",
},
});
async function main() {
const result = await prowlarr.getApi();
console.log(result);
}
main().catch(console.error);