Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 433 Bytes

USAGE.md

File metadata and controls

22 lines (16 loc) · 433 Bytes
import { SDK } from "openapi";

async function run() {
    const sdk = new SDK({
        bearerAuth: "<YOUR_BEARER_TOKEN_HERE>",
    });

    const res = await sdk.getV1Liveness();

    if (res?.statusCode !== 200) {
        throw new Error("Unexpected status code: " + res?.statusCode || "-");
    }

    // handle response
}

run();