1.1.43 • Published 3 years ago

@celitech/celitech-sdk v1.1.43

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years 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/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",
});
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.43

3 years ago

1.1.38

3 years ago

1.1.37

3 years ago

1.1.36

3 years ago

1.1.39

3 years ago

1.1.41

3 years ago

1.1.40

3 years ago

1.1.42

3 years ago

1.1.34

3 years ago

1.1.33

3 years ago

1.1.32

3 years ago

1.1.31

3 years ago

1.1.35

3 years ago

1.1.29

3 years ago

1.1.28

3 years ago

1.1.30

3 years ago

1.1.27

3 years ago

1.1.26

3 years ago

1.1.25

3 years ago

1.1.24

3 years ago

1.1.23

3 years ago

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

4 years ago

1.1.19

4 years ago

1.1.18

4 years ago

1.1.17

4 years ago

1.1.16

4 years ago

1.1.15

4 years ago

1.1.14

4 years ago

1.1.13

4 years ago

1.1.12

4 years ago

1.1.11

4 years ago

1.1.10

4 years ago

1.1.9

4 years ago

1.1.8

4 years ago

1.1.7

4 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago