@epilot/metering-client
TypeScript icon, indicating that this package has built-in type declarations

0.5.4 • Public • Published

@epilot/metering-client

API Client for epilot ts-sam API.

Uses openapi-client-axios

Getting Started

Install the package:

npm install --save-dev @epilot/metering-client

Import the package:

import { getClient } from '@epilot/metering-client';

Use the client:

// get typed client
const client = await getClient();

// call an operation
const res = await client.createMeterReading();

BaseURL & Authorization

To pass an authorization header and set up the API url, you can use axios defaults:

const client = getClient();
client.defaults.baseURL = config.API_URL;
client.defaults.headers['authorization'] = `Bearer ${token}`;

API Docs:

https://docs.api.epilot.io/

Readme

Keywords

Package Sidebar

Install

npm i @epilot/metering-client

Weekly Downloads

128

Version

0.5.4

License

UNLICENSED

Unpacked Size

152 kB

Total Files

11

Last publish

Collaborators

  • aleksandr.lapushkin
  • manikandan.subramanian
  • jakub.duras.epilot
  • mp-polarsquad
  • mateus.nardo
  • diogo.f.marques
  • praneetro
  • epilot-keremnalbant
  • rossepilot
  • kate.astrid
  • juan.villamizar
  • j.carneiro
  • sebas.sauer
  • wmolinari
  • vladcrishan
  • alexmarqs
  • mohammadjd
  • julian01
  • daniel-bot.epilot
  • a.kedia
  • sureshkumars
  • dusty48
  • paulo.henriques
  • mohannad7
  • epilot-dev-tools
  • nishugoel
  • sumanth.kanakala
  • anttiviljami
  • j.pinho