Nuki Web API TypeScript client: nuki-api-js
v3.5.1Unofficial, fully typed TypeScript client for the Nuki Web API, generated from its OpenAPI spec and published to npm as nuki-api-js.
Not affiliated with or endorsed by Nuki.
Installation
npm install nuki-api-jsAuthentication
Pass a Nuki Web API token as the token option.
Examples
import { NukiApi } from "nuki-api-js";
const client = new NukiApi({ token: process.env.NUKI_TOKEN ?? null });
const accounts = await client.api.account.getAccountsResource({});const accounts = await client.request("GET /account");const client = new NukiApi({
token: process.env.NUKI_TOKEN ?? null,
fetch: myFetchImplementation,
});