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

0.7.0 • 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

305

Version

0.7.0

License

UNLICENSED

Unpacked Size

175 kB

Total Files

11

Last publish

Collaborators

  • flavius_am
  • sebasavram
  • gokul.kalaikovan.epilot
  • berni-epilot
  • julian.maurer
  • danuta.ludwikowska
  • epilot-blomqma
  • priit.parna
  • jpcbarros
  • epilot.ernesto
  • thisisernesto
  • nadyehmad
  • karl.epilot
  • 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
  • julian01
  • daniel-bot.epilot
  • a.kedia
  • sureshkumars
  • dusty48
  • paulo.henriques
  • mohannad7
  • epilot-dev-tools
  • nishugoel
  • sumanth.kanakala
  • anttiviljami
  • j.pinho