trustcheckr-messaging
v1.0.10
Published
A package provided by TrustCheckr that allows you to send SMS and Email to users very easily.
Downloads
5
Readme
Messaging Package
This package allows the users registered with TrustCheckr to send emails and SMSs in a simple way to users.
Usage
const Messaging = require('trustcheckr-messaging');
const message = Messaging(MESSAGING_TOKEN);
// MESSAGING_TOKEN can be found from TrustCheckr team.
message.send(EVENT_NAME, EMAIL, PHONE, CC_EMAIL, EMAIL_DATA, SMS_DATA);
// EVENT_NAME can be created on the dashboard provided by TrustCheckr when you register.
// EMAIL is the email address to which you want to send email.
// PHONE Phone number with country code to which you want to send SMS.
// CC_EMAiL email you want to CC to.
// EMAIL_DATA {var1: 'Test', var2: 'TEST'} Object with all the dynamic keys that were added to the Email template.
// SMS_DATA {var1: 'TEST', var2: 'TEST'} Object with all the dynamic keys that were added to the SMS template.