1.0.0 • Published 1 year ago

@novum-batteries/cloud-api-client v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 { PublicAPIClient as 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);
  }
})();