Skip to content
This repository has been archived by the owner on Sep 6, 2024. It is now read-only.

integration-os/sdk

Repository files navigation

IntegrationOS Node.js Library

The IntegrationOS library for Node.js provides convenient access to the IntegrationOS API from applications written in server-side JavaScript.

Install

Using npm:

npm i @integrationos/node

Using yarn:

yarn add @integrationos/node

Configuration

To use the library you must provide an API key and Connection key. Both are located in the IntegrationOS dashboard.

import { IntegrationOS } from "@integrationOS/node";

const integrate = new IntegrationOS("sk_live_1234");

const response = await integrate
  .customers("live::xero::acme-inc")
  .get("cus_OT3CLnirqcpjvw");

console.log(response);

Testing

Configure the .env file based on the .env.sample provided with an IntegrationOS Secret Key, Connection Key and Model to test.

Full Documentation

Please refer to the official IntegrationOS Documentation and API Reference for more information and Node.js usage examples.