Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
textlink-sms
Advanced tools
Readme
npm install textlink-sms
or yarn add textlink-sms
To send an SMS, you have to create an API key using the TextLink API Console. When you register an account, you automatically get an API key with 0.5$ of credits (for TextLink service) and 500 free messages (for Use your device service).
const textlink = require("textlink-sms");
textlink.useKey("YOUR_API_KEY"); //You can create one in the API Console at https://textlinksms.com/dashboard/api
textlink.sendSMS("+381611231234", "Dummy message text...");
async function async_function() {
let result = await textlink.sendSMS("+381611231234", "Dummy message text...");
console.log(result);
}
async_function();
{
"ok": true
}
{
"ok": false,
"message": "API key not found"
}
You can also use our service to easily verify a phone number, without storing data about the phones that you are about to verify, because we can do it for you.
//User has sent his phone number for verification
await textlink.sendVerificationSMS("+11234567890", verificationOptions);
//Show him the code submission form
//We will handle the verification code ourselves
//The user has submitted the code
const result = await textlink.verifyCode("+11234567890", "USER_ENTERED_CODE");
//if `result.ok` is true, then the phone number is verified.
VerificationOptions
the optional argument for the sendVerificationSMS
function. It contains the parameters of the verification code that should be sent:
service_name
is what the user will see in the verification message, e. g. "Your verification code for Guest is: CODE"
expiration_time
is how many miliseconds the code is valid. Default is 10 minutes.
source_country
is the ISO-2 code of the sender's phone number country
{
service_name: "Guest",
expiration_time: 10 * 60 * 1000,
source_country: "US"
}
If you need help installing or using the library, please check the FAQ first, and contact us at help@textlinksms.com if you don't find an answer to your question.
If you've found a bug in the API, package or would like new features added, you are also free to contact us!
FAQs
Node.js library that helps you send SMS and verify users using the TextLink API
The npm package textlink-sms receives a total of 2 weekly downloads. As such, textlink-sms popularity was classified as not popular.
We found that textlink-sms demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.