Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
hubtel-sms-extended
Advanced tools
Note: You need to have an official Hubtel Account to use this library.
npm install hubtel-sms-extended --save
import { HubtelSms } from "hubtel-sms-extended";
const hubtelSms = new HubtelSms({
clientId: "YOUR_HUBTEL_CLIENT_ID",
clientSecret: "YOUR_HUBTEL_CLIENT_SECRET"
});
// TO CHANGE HUBTEL'S SMS API ENDPOINT
hubtelSms.BASE_URL = "https://smsc.hubtel.com/v1/messages" // DEFAULT VALUE
try {
const data = await hubtelSms.quickSend({
From: "ME",
Content: "Hello There",
To: "+23357XXXXXXX"
});
console.log(data);
} catch (err) {
console.log(err);
}
try {
const data = await hubtelSms.sendMessage({
From: "ME",
Content: "Hello There",
To: "+23357XXXXXXX"
});
console.log(data);
} catch (err) {
console.log(err);
}
try {
const message = await hubtelSms.getMessage(
"e74c56d6-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
);
console.log(message);
} catch (err) {
console.log(err);
}
try {
const data = await hubtelSms.queryMessage();
console.log(data.TotalPages);
console.log(data.Messages);
} catch (err) {
console.log(err);
}
try {
const data = await hubtelSms.scheduleMessage({
Content: "Hey, There",
From: "ME",
To: "+23357XXXXXXX",
Time: "2019-03-19T10:34:53.892Z"
});
console.log(data);
} catch (err) {
console.log(err);
}
try {
const data = await hubtelSms.rescheduleScheduledMessage(
"c122b8c0-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
"2019-03-19T11:30:53.892Z"
);
console.log(data);
} catch (err) {
console.log(err);
}
try {
const data = await hubtelSms.cancelScheduledMessage(
"e4fbab64-XXXX-XXXX-XXXX-XXXXXXXXXXXX"
);
console.log(data);
} catch (err) {
console.log(err);
}
FAQs
A Node.js wrapper for Hubtel's Sms API.
The npm package hubtel-sms-extended receives a total of 0 weekly downloads. As such, hubtel-sms-extended popularity was classified as not popular.
We found that hubtel-sms-extended 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.