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.
greensms
Advanced tools
Readme
The documentation for the GREENSMS API can be found here.
npm install greensms --save
Check out these code examples in JavaScript and TypeScript to get up and running quickly.
const GreenSMS = require("greensms");
// Register at my.greeensms.ru first
const client = new GreenSMS({ user: "test", pass: "test" });
client.sms
.send({
to: "71231234567",
txt: "Message to deliver",
})
.then((response) => {
console.log("Request ID: %s", response.request_id);
})
.catch((err) => {
console.error(err);
});
greensms-node
supports credential storage in environment variables. If no credentials are provided following env vars will be used: GREENSMS_USER
/GREENSMS_PASS
OR GREENSMS_TOKEN
.
const GreenSMS = require("greensms");
const client = new GreenSMS({ token: "token" });
client.account
.balance()
.then((response) => {
console.log("Balance ", response.balance);
})
.catch((err) => {
console.error(err);
});
const GreenSMS = require("greensms");
// Register at my.greeensms.ru first
const client = new GreenSMS({ user: "test", pass: "test" });
function cb(err, response) {
console.error("Error ", err);
console.log("Response", response);
}
greenSmsInstance.account.balance(cb);
greensms-node
is compatible with Node.js 12+ and tested until 19.x.
MODULE.FUNCTION()
snake_case
. If you want to use camelCase
, then pass camelCaseResponse: true
, in the constructortry/catch
blockerror
, code
, message
, errorType
fields and extends the default javascript Error
classIf you need help installing or using the library, please contact us: support@greensms.ru.
If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
Bug fixes, docs, and library improvements are always welcome. Please refer to our Contributing Guide for detailed information on how you can contribute. If you're not familiar with the GitHub pull request/contribution process, this is a nice tutorial.
If you want to familiarize yourself with the project, you can start by forking the repository and cloning it in your local development environment. The project requires Node.js to be installed on your machine.
After cloning the repository, install the dependencies by running the following command in the directory of your cloned repository:
npm install
You can run the existing tests to see if everything is okay by executing:
npm test
FAQs
GREENSMS API: SMS, Call, Voice, VK, WhatsApp, Viber, HLR, Pay
The npm package greensms receives a total of 55 weekly downloads. As such, greensms popularity was classified as not popular.
We found that greensms 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.