
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Note: You need to have an official Hubtel Account to use this library.
npm install hubtel-sms
import { HubtelSms } from "hubtel-sms";
const hubtelSms = new HubtelSms({
clientId: "YOUR_HUBTEL_CLIENT_ID",
clientSecret: "YOUR_HUBTEL_CLIENT_SECRET"
});
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 receives a total of 6 weekly downloads. As such, hubtel-sms popularity was classified as not popular.
We found that hubtel-sms 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.

Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.

Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.

Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.