New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

termii-node

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

termii-node

Node SDK for termii messaging platform written with typesscript support

latest
Source
npmnpm
Version
1.0.6-beta
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

GitHub version npm version

Termii Node Package

Termii-node helps you set up, test, and manage your Termii integration directly in your Node.js App. The Idea here is to simplify the process of interacting with the termii endpoints with ease.

Installation

You can install the package via NPM or Yarn:

npm install termii-node

OR

yarn add termii-node

Usage:

Import your use case via common vocabularies

  • Example import {getBalance} from 'termii-node';

Common vocabularies available for import

  • getBalance
  • getMessageHistory
  • getNumberStatus
  • searchPhoneNumber
  • getSenderId
  • requestSenderId
  • sendMessage
  • sendMessageBulk
  • sendToken
  • sendVoiceCall
  • sendInAppToken
  • verifyToken

Note: This termii node package ACCEPTS an object as parameter and returns a promise. The object key value pair is based on termii's own parameters.

  • e.g: sendMessage({ api_key: process.env.API_KEY, to: '2347052980452', from: 'TERMI02', channel: 'generic', sms: 'Hey chief, this is just a simple sms from termii' })

Check your balance on Termii

  • You can check your termii balance.
  • Run getBalance() and pass appropriate params

Reports for messages sent across the sms, voice & whatsapp channels

  • You can check reports for messages sent across the sms, voice & whatsapp channels.
  • Run getMessageHistory() and pass appropriate params

Detect if a number is fake or has ported to a new network

  • You can check if a number is fake or has ported to a new network.
  • Run getNumberStatus() and pass appropriate params

Verify phone numbers and automatically detect their status

  • You can verify phone numbers and automatically detect their status.
  • Run searchPhoneNumber() and pass appropriate params

Retrieve the status of all registered sender ID

  • You can retrieve the status of all registered sender ID.
  • Run getSenderId() and pass appropriate params

Request a new sender ID

  • You can request a new sender ID.
  • Run requestSenderId() and pass appropriate params

Send Message

  • You can send a message.
  • Run sendMessage() and pass appropriate params

Send Bulk Message

  • You can send bulk messages.
  • Run sendMessageBulk() and pass appropriate params. In this case, the the receiver is an array of strings.

Send OTP Token

  • You can send OTP Token
  • Run sendToken() and pass appropriate params

Send Voice OTP TOken

  • You can send OTP Token
  • Run sendVoiceToken() and pass appropriate params

Send Voice Call

  • You can send OTP
  • Run sendVoiceCall() and pass appropriate params

OTP Validation

  • You can verify or validate OTP
  • Run verifyToken() pass appropriate params

Send In-App OTP

  • You can send In-App OTP
  • Run sendInAppToken() and pass appropriate params

Credits

License

The MIT License (MIT). Please see License File for more information.

Keywords

termii

FAQs

Package last updated on 20 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts