0.4.1 • Published 1 year ago

@epilot/billing-client v0.4.1

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

@epilot/billing-client

API Client for epilot Billing API.

Uses openapi-client-axios

Getting Started

Install the package:

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

Import the package:

import { getClient } from '@epilot/billing-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/

0.4.1

1 year ago

0.4.0

1 year ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago