New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@epilot/automation-client

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epilot/automation-client

API Client for epilot automation API


Version published
Maintainers
23
Created

@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:

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

// call an operation
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/

FAQs

Package last updated on 30 May 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts