@cohort-xyz/cohort-campaign-diffusion-js
v1.2.1
Published
Javascript SDK for broadcasting Cohort Challenges in your website
Readme
Cohort Campaign Diffusion JS SDK
Cohort is the Plug and Play marketing solution that turns the customer account into a powerful engagement channel for brands.
Cohort Campaign Diffusion JS SDK is a JavaScript SDK to enable broadcasting Cohort Challenges in your website.
Find all the Cohort's documentation at docs.getcohort.com.
Table of Contents
Installation
Via CDN:
<script src="https://cdn.jsdelivr.net/npm/@cohort-xyz/cohort-campaign-diffusion-js/dist/cohort-campaign-diffusion-sdk.umd.js"></script>
<script>
const cohort = new CohortCampaignDiffusionSDK('YOUR_API_KEY');
// or
// const cohort = new CohortCampaignDiffusionSDK('YOUR_API_KEY', true); // verbose mode
</script>Usage
You will need to create an API key in your back-office in order to use the SDK.
Refer to this page in the documentation for more information on how to create an API key.
Since the SDK is a client-side library, please make sure to create an API key with the minimum permissions required (only the default ones are required)
Once you API key is created, you can configure the SDK behaviour in the dedicated page of your back-office.
Examples
Development
pnpm install
pnpm devLicense
This project is licensed under the MIT license.
See LICENSE for more information.
