1.0.2 • Published 3 years ago

csb-ts v1.0.2

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

CSB Node | Browser Package to Send Events

Using npm:

$ npm i csb-ts --save
Create CSB Instance: Node|React|Vue|Angular
import {CSB} from 'csb-ts';

CSBInstance = new CSB(
    'https://{{domain}}.customersuccessbox.com',
    '{{secret}}'
);

Functions

Login
CSBInstance.login('Account1', 'User1');
Logout
CSBInstance.logout('Account1', 'User1');
Account [account(account_id, properties = [])]
CSBInstance.account('Account1', {'property1' : 'value1', 'property2' : 'value2', 'custom_Field' : 'custom_value'});
User [user(account_id, user_id, properties = [])]
CSBInstance.user('Account1', 'User1', {'property1' : 'value1', 'property2' : 'value2', 'custom_Field' : 'custom_value'});
Subscription [subscription(account_id, subscription_id, properties = [])]
CSBInstance.subscription('Account1', 'Subscription1', {'property1' : 'value1', 'property2' : 'value2'});
Subscription [invoice(account_id = null, subscription_id = null, invoice_id, properties = [])]
CSBInstance.invoice('Account1', null, 'Invoice1', {'property1' : 'value1', 'property2' : 'value2'});
CSBInstance.invoice(null, 'Subscription1', 'Invoice1', {'property1' : 'value1', 'property2' : 'value2'});
Feature feature(account_id, user_id, product_id, module_id, feature_id, total = 1)
CSBInstance.feature('Account1', 'User1', 'ProductName', 'ModuleName', 'FeatureName', 10);
1.0.2

3 years ago

1.0.0

3 years ago