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.
sms-activate-sdk
Advanced tools
Readme
This package fully supports all the https://sms-activate.org/ API with Typescript types. Fork on sms-activate-org
Install the package using npm
Recommanded:
npm install sms-activate
Or
npm install sms-activate-sdk
import { SMSActivate, SMSNumber } from 'sms-activate';
const api = new SMSActivate('myapikey');
(async () => {
const balance = await api.getBalance();
console.log(`My balance is ${balance}`);
})();
/* Getting a number to activate Gmail services,
* the wrapper automatically resolves country and services names */
// You need got to https://sms-activate.org/en/api2 to get the service and country code
api.getNumber({ service: 'tw', country: 0 }).then(async number: SMSNumber => {
// Do your stuff with number.phoneNumber here,
// like writing in the number field
/** Setting code status to Ready **/
await number.ready(); // or api.setStatus({ id: number.activationId, status: EActivationSetStatus.Ready });
// Press the send sms button
try {
/** Waiting a maximum of 180s for the code to arrive **/
const code = await number.getCode();
// Do your stuff with the code there
/** Setting code status to Success if everything worked as expected **/
await number.success(); // or api.setStatus({ id: number.activationId, status: EActivationSetStatus.Success });
} catch(err) {
console.error(err);
/** Setting code status to Failed if the code was used **/
await number.failed();
}
}).catch(console.error);
FAQs
A full NodeJS API for sms-activate.org
The npm package sms-activate-sdk receives a total of 9 weekly downloads. As such, sms-activate-sdk popularity was classified as not popular.
We found that sms-activate-sdk 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
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.