The IntegrationOS library for Node.js provides convenient access to the IntegrationOS API from applications written in server-side JavaScript.
Using npm:
npm i @integrationos/node
Using yarn:
yarn add @integrationos/node
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);
Configure the .env
file based on the .env.sample
provided with an IntegrationOS Secret Key, Connection Key and Model to test.
Please refer to the official IntegrationOS Documentation and API Reference for more information and Node.js usage examples.