1.1.51 • Published 9 months ago

celitech-sdk-typescript v1.1.51

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Typescript/Javascript library for interacting with the Celitech API

CI NPM version

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-sdk-typescript
# or
yarn add celitech-sdk-typescript

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-sdk-typescript";

const celitech = new Celitech({
  clientId: "CLIENT_ID",
  clientSecret: "CLIENT_SECRET",
  environment: "PRODUCTION",
});
OptionRequiredDefaultDescription
clientIdtrueThe Client ID to be used for OAUTH 2.0 - available on your Celitech dashboard
clientSecrettrueThe 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);
1.1.51

9 months ago

1.1.50

9 months ago

1.1.49

11 months ago

1.1.48

1 year ago

1.1.47

1 year ago

1.1.46

1 year ago

1.1.45

1 year ago

1.1.44

1 year ago