
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
termii-nodejs
Advanced tools
You can install the package via npm:
npm i termii-nodejs
const Termii = require("termii-nodejs").Termii;
const sender_id = "YOUR_SENDER_ID";
const api_key = "YOUR_API_KEY";
const termii = new Termii({
api_key: api_key,
sender_id: sender_id,
});
const request = termii.getBalance().then((res) => console.log(res));
There you go! 🍭
👉🏿 Refer to the official Termii Docs
This is a list of methods available in this SDK according to the official APIs
getBalance()
search(phone_number)
getStatus(phone_number, country_code)
getHistory()
sendMessage(recipient, message)
sendMessageWithAutomatedNumber(recipient, message)
inAppToken(phone_number)
sendToken(phone_number, pin_placeholder, message_text)
sendVoiceToken(phone_number)
sendVoiceCall(phone_number, code)
verifyToken(pin_id, pin)
getSenderId()
requestSenderId(sender_id, usecase, company)
sendTemplate(phone_number, device_id, template_id, data)
Not Yet Available.
You can have full control when you create a new instance of the Termii
class.
Not all options are needed for every request, refer to the Docs and see what is required for the resources you need.
new Termii({
api_key: api_key,
sender_id: sender_id,
channel: "generic",
pin_attempts: 2,
pin_time: 1,
pin_length: 6,
pin_type: "NUMERIC"
});
channel
: Route through which the message is sent. It is either dnd
, WhatsApp
, or generic
.pin_time
: Validity of pin before expiration in minutes and default is 1
.pin_length
: Length of the PIN code. Default is 4
.pin_attempts
: Nnumber of times the PIN can be attempted.pin_type
: NUMERIC
or ALPHANUMERIC
FAQs
NodeJS package (SDK) for Termii API
The npm package termii-nodejs receives a total of 60 weekly downloads. As such, termii-nodejs popularity was classified as not popular.
We found that termii-nodejs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.