termii
v1.2.1
Published
A Javascript wrapper for termii messaging platform for businesses
Downloads
11
Maintainers
Readme
Termii
<1kb Framework/Library agnostic termii
Installation
npm install termii
Usage
import Termii from 'termii'
const termiiInstance = Termii()
//Set API
termiiInstance.setApi('YOUR_API_KEY')
//Send SMS
termiiInstance.send_sms('234THE_TARGET_NUMBER','Your message','SENDER_ID')
//Send WhatsApp Message
termiiInstance.send_sms('234THE_TARGET_NUMBER','Your message','SENDER_ID','whatsapp')
//Take note that whatsapp was added as the fourth parameter
//Send OTP
termiiInstance.send_otp('234THE_TARGET_NUMBER','SENDER_ID','dnd')
//Verify OTP
termiiInstance.verify_otp('XXXXX-XXXXX-XXXX-XXXX','123456')
Developed by Aremu Smog
Contributors
Greatly Inspired by Ashinze Ekene's paystack-simple