npm.io
7.2.1-rc2 • Published 2 weeks ago

@epilot/entity-client

Licence
MIT
Version
7.2.1-rc2
Deps
7
Size
1.1 MB
Vulns
0
Weekly
0
Stars
22

@epilot/entity-client

CI npm version bundle size License

Client library for epilot Entity API

Uses openapi-client-axios

Installation

npm install --save @epilot/entity-client

Usage

import { getClient } from '@epilot/entity-client';
const entityClient = getClient();

const createResponse = await entityClient.createEntity({ slug: 'contact' }, { first_name: 'Example', last_name: 'Entity' });
const getResponse = await entityClient.getEntity({ slug: 'contact', id: createResponse.data._id });

Documentation

https://docs.epilot.io/docs/entities/entity-api

Keywords