@celitech/celitech-sdk v1.1.43
Typescript/Javascript library for interacting with the Celitech API
API Reference
For a complete API reference with code examples for each endpoint in different languages - Make sure to visit https://docs.celitech.net
Installation
npm install @celitech/celitech-sdk
# or
yarn add @celitech/celitech-sdk
Setup
The package needs to be configured with your account's clientId and clientSecret, which are available in the Celitech Dashboard.
import { Celitech } from "@celitech/celitech-sdk";
const celitech = new Celitech({
clientId: "CLIENT_ID",
clientSecret: "CLIENT_SECRET",
environment: "PRODUCTION",
});
Option | Required | Default | Description |
---|---|---|---|
clientId | true | The Client ID to be used for OAUTH 2.0 - available on your Celitech dashboard | |
clientSecret | true | The Client Secret to be used for OAUTH 2.0 - available on your Celitech dashboard |
Basic example
celitech.destinations
.list()
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});
Or using ES modules and async/await:
const response = await celitech.destinations.list();
console.log(response);
5 months ago
9 months ago
9 months ago
10 months ago
9 months ago
8 months ago
9 months ago
8 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago