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

0.22.4 • Public • Published

@epilot/customer-portal-client

API Client for epilot customer-portal API.

Uses openapi-client-axios

Getting Started

Install the package:

npm install --save-dev @epilot/customer-portal-client

Import the package:

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

Use the client:

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

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

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.CUSTOMER_PORTAL_API;
client.defaults.headers['authorization'] = `Bearer ${token}`;

API Docs:

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

Package Sidebar

Install

npm i @epilot/customer-portal-client

Weekly Downloads

1,283

Version

0.22.4

License

UNLICENSED

Unpacked Size

897 kB

Total Files

12

Last publish

Collaborators

  • daniel-bot.epilot
  • sumanth.kanakala
  • julian01
  • danuta.ludwikowska
  • anttiviljami
  • j.pinho
  • praneetro
  • sureshkumars
  • paulo.henriques
  • diogo.f.marques
  • a.kedia
  • sebas.sauer
  • nishugoel
  • epilot-dev-tools
  • alexmarqs
  • dusty48
  • vladcrishan
  • wmolinari
  • j.carneiro
  • jakub.duras.epilot
  • julian.maurer
  • manikandan.subramanian
  • aleksandr.lapushkin
  • berni-epilot
  • mateus.nardo
  • gokul.kalaikovan.epilot
  • epilot-keremnalbant
  • jpcbarros
  • karl.epilot
  • priit.parna
  • thisisernesto
  • epilot.ernesto
  • epilot-blomqma
  • kate.astrid
  • sebasavram
  • flavius_am
  • kshitij.saxena.epilot
  • relequestual
  • niko.koziv
  • josh.stewart.epilot
  • joecaseepilot
  • betafcc
  • richard.griffiths