@epilot/automation-client
API Client for epilot automation API.
Uses openapi-client-axios
Getting Started
Install the package:
npm install --save-dev @epilot/automation-client
Import the package:
import { getClient } from '@epilot/automation-client';
Use the client:
const client = await getClient();
const res = await client.testS3();
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/