constructor-groups v1.0.2
Constructor Groups Node.js SDK
Welcome to the official Constructor Groups Node.js SDK! This SDK provides a set of tools for integrating with the Constructor Groups platform, allowing developers to easily interact with Constructor Groups APIs and services.
Installation
Install the SDK via npm:
npm install constructor-groups@latest
Or, if you use yarn:
yarn add constructor-groups@latest
Or, if you use pnpm:
pnpm add constructor-groups@latest
Getting Started
To get started with the Constructor Groups SDK, you first need to initialize it with your credentials. You can find your API keys in the Constructor Groups dashboard under Settings > Developer Settings.
Using Environment Variables
You can set your credentials using environment variables:
export PERCULUS_DOMAIN=<your_perculus_domain>
export PERCULUS_ACCESS_KEY=<your_access_key>
export PERCULUS_SECRET_KEY=<your_private_key>
Then, initialize the SDK without passing credentials:
import APIClient from "constructor-groups"
getClient() {
const client = new APIClient();
client.setDomain(process.env.PERCULUS_DOMAIN);
client.setCredentials({
accessKey: process.env.PERCULUS_ACCESS_KEY,
secretKey: process.env.PERCULUS_SECRET_KEY,
});
return client;
}
Documentation
Full documentation and API reference can be found in our Constructor Groups Developer Wiki. Here, you'll find comprehensive guides, code examples, and troubleshooting tips to help you make the most out of the Constructor Groups SDK.