@epilot/entity-client
v4.34.2
Published
JavaScript client library for the epilot Core Entity API
Downloads
11,435
Maintainers
Readme
@epilot/entity-client
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