Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.12 KB

init.md

File metadata and controls

46 lines (36 loc) · 1.12 KB
description layout
Initialize the Airstack NodeJS SDK with Airstack API key. This is required to call the Airstack API.
title description tableOfContents outline pagination
visible
true
visible
true
visible
true
visible
visible
true

init

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

Param Type Default Value Description
key string null Airstack API key
_config Config? { env: "dev", cache: true } SDK Configuration, e.g. logging, caching, etc.