Getting started

Include the NeoDay client library

Add the following script tag to your page.

<script src="https://js.neoday.com/v1/neoday.min.js"></script>

Configure the client

Initialize the client using your client ID and authentication endpoint:

let neo = new neoday.NeoDay({
    base_url: 'https://gateway.test.client-designated-gateway.neo.day',
    locale: 'nl_NL',
    auth: {
        endpoint: '/api/auth',
        x_site_token: '',
        client_id: '',
        headers: {},
        params: {}
    }
});

Neoday Initialization Payload:

base_url - The base url of the NeoDay gateway. This will be provided by NeoDay.
auth - Contains the configuration of your authentication endpoint. See here for more details

Embed a component

Here's an example of how to embed the customer card component. See components for a list of all available components.

<div id="campaign-list"></div>
neo.CampaignList("campaign-list")