Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
smart-sms-solutions
Advanced tools
Smart-SMS-Solutions sdk - https://developer.smartsmssolutions.com/
pnpm add smart-sms-solutions
npm install smart-sms-solutions
yarn add smart-sms-solutions
bun add smart-sms-solutions
import SmartSmsSolutions from "smart-sms-solutions";
const smartSmsSolutions = new SmartSmsSolutions("api_key");
const balance = await smartSmsSolutions.getBalance();
const balance = await smartSmsSolutions.getBalance();
const dataProductList = await smartSmsSolutions.getDataProductList(
"080********",
"SME"
);
phoneNumber
- The phone number of the usersort
- The sort order of the list of data products. Can be undefined
or SME
. If you need more sort options, please open an issue.const buyInternetData = await smartSmsSolutions.buyInternetData({
phone: "080********",
productName: "product-name",
refId: "ref-id",
});
const buyAirtime = await smartSmsSolutions.buyAirtime({
phone: "080********",
amount: 1000,
refId: "ref-id",
});
const voiceOtpRequest = await smartSmsSolutions.voiceOtpRequest({
phone: "080********",
otp: "123456",
refId: "ref-id",
classTitle: "THREE_DIGITS_ONCE",
});
classCode
or classTitle
property. You can't use both at the same time.classTitle
can be THREE_DIGITS_ONCE
, THREE_DIGITS_TWICE
, FOUR_DIGITS_ONCE
, FOUR_DIGITS_TWICE
, SIX_DIGITS_ONCE
, SIX_DIGITS_TWICE
classTitle
inputs the class code for you.classCode
is the code of the voice otp class. e.g. B1DXW4V8YA. Here you have to input the class code yourself.const voiceOtpDeliveryStatus = await smartSmsSolutions.voiceOtpDeliveryStatus({
refId: "ref-id",
logId: "log-id",
});
const sendSmsOtp = await smartSmsSolutions.sendSmsOtp({
phone: "080********",
otp: "123456",
refId: "ref-id",
senderId: "sender-id",
appNameCode: "app-name-code",
templateCode: "template-code",
});
const sendSms = await smartSmsSolutions.sendSms({
to: "080********",
message: "message",
refId: "ref-id",
senderId: "sender-id",
dirTimeout: "dir-timeout",
routing: "routing",
schedule: "schedule",
type: "type",
simServerToken: "sim-server-token",
});
to
, senderId
and message
are requiredtype
defaults to 0routing
defaults to 3const submitSenderId = await smartSmsSolutions.submitSenderId({
senderId: "sender-id",
message: "message",
address: "address",
organizationName: "organization-name",
registrationNumber: "registration-number",
});
const getPhoneInfo = await smartSmsSolutions.getPhoneInfo({
phone: "080********",
type: "type",
});
FAQs
Smart-SMS-Solutions sdk - https://developer.smartsmssolutions.com/
The npm package smart-sms-solutions receives a total of 1 weekly downloads. As such, smart-sms-solutions popularity was classified as not popular.
We found that smart-sms-solutions 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.