trustcheckr-messaging

1.0.10 • Public • Published

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.

Readme

Keywords

Package Sidebar

Install

npm i trustcheckr-messaging

Weekly Downloads

2

Version

1.0.10

License

ISC

Unpacked Size

3.58 kB

Total Files

4

Last publish

Collaborators

  • trustcheckr