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:
@@ -11,6 +11,7 @@
|
||||
|
||||
### Example Usage
|
||||
|
||||
<!-- UsageSnippet language="typescript" operationID="get_/api/v1/log" method="get" path="/api/v1/log" -->
|
||||
```typescript
|
||||
import { Prowlarr } from "prowlarr";
|
||||
|
||||
@@ -23,7 +24,6 @@ const prowlarr = new Prowlarr({
|
||||
async function run() {
|
||||
const result = await prowlarr.log.getApiV1Log({});
|
||||
|
||||
// Handle the result
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
@@ -48,15 +48,12 @@ const prowlarr = new ProwlarrCore({
|
||||
|
||||
async function run() {
|
||||
const res = await logGetApiV1Log(prowlarr, {});
|
||||
|
||||
if (!res.ok) {
|
||||
throw res.error;
|
||||
if (res.ok) {
|
||||
const { value: result } = res;
|
||||
console.log(result);
|
||||
} else {
|
||||
console.log("logGetApiV1Log failed:", res.error);
|
||||
}
|
||||
|
||||
const { value: result } = res;
|
||||
|
||||
// Handle the result
|
||||
console.log(result);
|
||||
}
|
||||
|
||||
run();
|
||||
|
||||
Reference in New Issue
Block a user