mirror of
https://github.com/LukeHagar/Prowlarr-TS-SDK.git
synced 2025-12-06 04:21:03 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.596.0
This commit is contained in:
28
examples/apiInfoGetApi.example.ts
Normal file
28
examples/apiInfoGetApi.example.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* 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);
|
||||
Reference in New Issue
Block a user