description | layout | |||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Initialize the Airstack NodeJS SDK with Airstack API key. This is required to call the Airstack API. |
|
import { init } from "@airstack/airstack-react";
init("YOUR_AIRSTACK_API_KEY", { env: "dev", cache: true });
function init(
key: string,
_config?: Config
): void
Param | Type | Default Value | Description |
---|---|---|---|
key |
string |
null |
Airstack API key |
_config |
Config? |
{ env: "dev", cache: true } |
SDK Configuration, e.g. logging, caching, etc. |