1.4.4 • Published 1 month ago

rotacloud v1.4.4

Weekly downloads
2
License
MIT
Repository
github
Last release
1 month ago

RotaCloud Node SDK

Getting started

To use this SDK you'll need to npm install rotacloud. This will ensure you're ready to start working with the SDK in your project.

Contributing

Please ensure you perform the npm run version:bump command before commiting and pushing your changes to the remote branch.

Configuration

Configuration is simple, just import the core RotaCloud SDK and supply your API key as necessary.

import { RotaCloud } from 'rotacloud';

const rc = new RotaCloud({
  apiKey: 'YOUR_API_KEY',
});

Auto paging

Our SDK support auto pagination as a way for developers to quickly consume list based endpoints. You will find a list() method on most services within the SDK which can be consumed using for await of. Please ensure you are catching errors in your implementation.

try {
  for await (const user of rc.users.list()) {
    console.log(user);
  }
} catch (e) {
  console.log(e);
}

Retry Policies

Our SDK supports both basic and customisable retry polices. Both can be easily configured in the SDKConfig object at time of instantiation. Both exponential and static value based back offs are supported.

Only idempotent requests will be retried.

import { RotaCloud } from 'rotacloud';

const rc = new RotaCloud({
  apiKey: 'YOUR_API_KEY',
  retry: 'expo' | 'static',
});

If more granular control is required of the internal retry policy values, an object can be passed through the retry field.

import { RotaCloud } from 'rotacloud';

const rc = new RotaCloud({
  apiKey: 'YOUR_API_KEY',
  retry: { delay: 2000, exponential: false, maxRetries: 10 },
});
1.4.4

1 month ago

1.4.3

1 month ago

1.4.2

3 months ago

1.4.0

4 months ago

1.2.0

6 months ago

1.2.1

5 months ago

1.1.2

7 months ago

1.1.1

8 months ago

1.1.0

9 months ago

1.0.44

11 months ago

1.0.43

11 months ago

1.0.48

10 months ago

1.0.47

10 months ago

1.0.46

10 months ago

1.0.45

11 months ago

1.0.49

9 months ago

1.0.51

9 months ago

1.0.55

9 months ago

1.0.53

9 months ago

1.0.52

9 months ago

1.0.58

9 months ago

1.0.57

9 months ago

1.0.56

9 months ago

1.0.39

1 year ago

1.0.40

1 year ago

1.0.41

1 year ago

1.0.38

1 year ago

1.0.37

1 year ago

1.0.35

1 year ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.30

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.0

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago