1.0.3 • Published 5 years ago

supermetor v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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');