Client library for the epilot consent API
npm install @epilot/consent-client



Client library for epilot Consent API.
Uses openapi-client-axios
``sh`
npm i @epilot/consent-client
`typescript
import { getClient } from '@epilot/consent-client';
const consentCLient = getClient();
await consentClient.publishConsentEvent({
{
type: "OPT_IN",
topic: "EMAIL_MARKETING",
identifier: "exampleuser@epilot.cloud",
source: "my-custom-journey",
});
``
https://docs.epilot.io/api/consent