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/airstack-react";

init("YOUR_AIRSTACK_API_KEY", { env: "dev", cache: true });

Function Signature

function init(
  key: string,
  _config?: Config
): void

Params

ParamTypeDefault ValueDescription

key

string

null

_config

{ env: "dev", cache: true }

SDK Configuration, e.g. logging, caching, etc.

Last updated

Was this helpful?