@epilot/consent-client
v1.5.2
Published
Client library for the epilot consent API
Maintainers
Readme
@epilot/consent-client
Client library for epilot Consent API.
Uses openapi-client-axios
Installation
npm i @epilot/consent-clientUsage
import { getClient } from '@epilot/consent-client';
const consentCLient = getClient();
await consentClient.publishConsentEvent({
{
type: "OPT_IN",
topic: "EMAIL_MARKETING",
identifier: "[email protected]",
source: "my-custom-journey",
});Documentation
https://docs.epilot.io/api/consent
