Skip to content

Developer-friendly & type-safe TypeScript SDK specifically catered to leverage the Speakeasy API.

Notifications You must be signed in to change notification settings

speakeasy-api/speakeasy-client-sdk-typescript

Repository files navigation

@speakeasy-api/speakeasy-client-sdk-typescript

SDK Installation

NPM

npm add @speakeasy-api/speakeasy-client-sdk-typescript

Yarn

yarn add @speakeasy-api/speakeasy-client-sdk-typescript

SDK Example Usage

import { Speakeasy } from "@speakeasy-api/speakeasy-client-sdk-typescript";
import { GetApisResponse } from "@speakeasy-api/speakeasy-client-sdk-typescript/dist/sdk/models/operations";

const sdk = new Speakeasy({
  security: {
    apiKey: "",
  },
});

sdk.apis.getApis({
  metadata: {
    "provident": [
      "quibusdam",
      "unde",
      "nulla",
    ],
    "corrupti": [
      "vel",
      "error",
      "deserunt",
      "suscipit",
    ],
    "iure": [
      "debitis",
      "ipsa",
    ],
  },
  op: {
    and: false,
  },
}).then((res: GetApisResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Available Resources and Operations

SDK Generated by Speakeasy