init

Initialize the Airstack NodeJS SDK with Airstack API key. This is required to call the Airstack API.

Pre-requisites

Example

import { init } from "@airstack/node";

init("YOUR_AIRSTACK_API_KEY", "dev");

Function Signature

function init(
  key: string,
  env?: "dev" | "prod"
): void

Params

ParamTypeDefault ValueDescription

key

string

env

dev | prod

dev

dev provides verbose logging. prod provides minimal logging, best for production environment.

Last updated

Was this helpful?