1.0.0 • Published 3 years ago

@revenuegrid/churnzerojs v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ChurnZeroJS

This is a wrapper for ChurnZero JS Api https://support.churnzero.net/hc/en-us/articles/360004683552-Integrate-ChurnZero-using-Javascript

Usage

import { Client } from '@revenuegrid/churnzerojs';

const client = await Client.connect({
		url: 'analytics.churnzero.net/churnzero.js', // or eu1analytics.churnzero.net/churnzero.js
		apiKey: '{your key}',
		accountId: '{account id}',
		contactId: '{contact id}'
});

client.trackEvent('some custom event');