npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

termii-node

v1.0.6-beta

Published

Node SDK for termii messaging platform written with typesscript support

Downloads

10

Readme

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' })
Every method call MUST be passed your termii API KEY. Hence, you can either set it directly or as a variable (Not recommended) as it can be exposed to the public.
The recommended way is to set it in your environment variables and call via process.env.API_KEY (Highly recommended)

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.