1.1.43 • Published 2 years ago

@celitech/celitech-sdk v1.1.43

Weekly downloads
-
License
ISC
Repository
github
Last release
2 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

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.1.36

2 years ago

1.1.39

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.1.42

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.35

2 years ago

1.1.29

2 years ago

1.1.28

2 years ago

1.1.30

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.23

2 years ago

1.1.22

3 years ago

1.1.21

3 years ago

1.1.20

3 years ago

1.1.19

3 years ago

1.1.18

3 years ago

1.1.17

3 years ago

1.1.16

3 years ago

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago