Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 3.51 KB

File metadata and controls

44 lines (28 loc) · 3.51 KB

Environment

(environment)

Available Operations

  • get - Retrieve the environment variables as added in the Nango dashboard.

get

Retrieve the environment variables as added in the Nango dashboard

Example Usage

import { Nango } from "@speakeasy-sdks/nango";

const nango = new Nango();

async function run() {
  const result = await nango.environment.get();

  // Handle the result
  console.log(result)
}

run();

Parameters

Parameter Type Required Description
options RequestOptions Used to set various options for making HTTP requests.
options.fetchOptions RequestInit Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed.

Response

Promise<components.GetEnvironmentVariableResponse[]>

Errors

Error Object Status Code Content Type
errors.SDKError 4xx-5xx /