supermetor
v1.0.3
Published
Supermeteor is Node Js SDK use to send SMS message and email.
Downloads
1
Readme
Supermeteor
Supermeteor is Node Js SDK use to send SMS message and email.
How to use:
install using npm
npm install supermeteor
include supermeter in your file
const supermeteor = require('supermeteor')('SECRET_KEY');
Package uses axios for HTTP request, so for function use "async" prefix and for mathod use "await" prefix.
1. For sending sms:
pass secret key, type, phone, message as function parameter, Here is the sample function call for send sms.
Type must be: sms or whatsapp
await supermeteor.sendMessage('sms|whatsapp','phone','message');
2. For sending email:
pass secret key, email, subject, message as function parameter, Here is the sample function call for send email.
await supermeteor.sendEmail('email','subject','message');