Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
sms_ru
Advanced tools
Readme
Nodejs модуль для работы с API сервиса sms.ru
Подключение:
var SMSru = require('sms_ru');
Авторизация (с помощью api_id):
var sms = new SMSru(api_id);
Авторизация (с помощью логина и пароля):
var sms = new SMSru(login, password);
Отправка SMS:
sms.sms_send({
to: '79112223344',
text: 'Текст SMS'
}, function(e){
console.log(e.description);
});
sms.sms_send({
multi: [
['79112223344', 'Текст СМС'],
['79115556677', 'Текст СМС'],
['79115552255', 'Текст СМС']
], function(e){
console.log(e.description);
});
Статус SMS:
sms.sms_status('SMS id', callback);
Стоимость SMS:
sms.sms_cost({
to: '79112223344',
text: 'Текст SMS'
}, callback);
Баланс:
sms.my_balance(function(e){
console.log(e.balance);
})
Дневной лимит:
sms.my_limit(function(e){
console.log(e.current+' / '+e.total);
})
Отправители:
sms.my_senders(function(e){
console.log(e.senders);
})
Добавить номер в стоплист:
sms.stoplist_add({
phone:'79112223344',
text:'Примечание'
}, callback)
Удалить номер из стоп-листа:
sms.stoplist_del({
phone:'79112223344',
}, callback)
Получить номера стоплиста:
sms.stoplist_get(function(e){
console.log(e.stoplist);
})
Максим Бородин, e-mail: maxim@borodinart.ru
FAQs
sms.ru API client
The npm package sms_ru receives a total of 425 weekly downloads. As such, sms_ru popularity was classified as not popular.
We found that sms_ru 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
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.