novum-cloud-api-client
v1.0.5
Published
To use novum-batteries cloud api.
Downloads
5
Readme
This is the Novum API client library for js and ts.
Installation
```bash
npm install novum-cloud-api-client
yarn add novum-cloud-api-client
Usage
import { APIClient } from 'novum-cloud-api-client';
const apiClient = new APIClient();
(async () => {
try {
await apiClient.login('YourEMail', 'YourPassword');
const batteryTypes = await apiClient.getBatteryTypes();
console.log(batteryTypes);
} catch (e) {
console.error(e);
}
})();