
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
zenvia-api
Advanced tools
Um módulo para envio de SMS com a empresa Zenvia
npm install zenvia-api --save
let zenvia = require("zenvia-api").sendOne;
let body = {
"from": "Remetente",
"to": "5521998430601",
"msg": "Mensagem de teste",
"callbackOption": "NONE",
"id": 1,
"aggregateId": "1111"
};
zenvia('conta','senha', body)
.then((response) => console.log(response))
.catch((err) => console.log(err));
No caso de sucesso retornará um json como abaixo.
{
"sendSmsResponse": {
"statusCode": "00",
"statusDescription": "Ok",
"detailCode": "000",
"detailDescription": "Message Sent"
}
}
No caso de erro em algum dado retornará o json abaixo
{
"sendSmsResponse": {
"statusCode": "99",
"statusDescription": "Nok",
"detailCode": "999",
"detailDescription": "Invalid User"
}
}
Caso a conta ou a senha estejam errados a seguinte mensagem será retornada
{
"sendSmsResponse": {
"statusCode": "10",
"statusDescription": "Nok",
"detailCode": "900",
"detailDescription": "Authentication error"
}
}
let zenvia = require("zenvia-api").getStatus;
zenvia('conta','senha', 1)
.then((response) => console.log(response))
.catch((err) => console.log(err));
{
"getSmsStatusResp" : {
"id" : "1",
"received" : "2017-05-10T20:05:11",
"shortcode" : "27900",
"mobileOperatorName" : null,
"statusCode" : "03",
"statusDescription" : "Delivered",
"detailCode" : "120",
"detailDescription" : "Message received by mobile"
}
}
let zenvia = require("zenvia-api").list;
zenvia('conta','senha')
.then((response) => console.log(response))
.catch((err) => console.log(err));
{
"receivedResponse": {
"statusCode": "00",
"statusDescription": "Ok",
"detailCode": "300",
"detailDescription": "Received messages found",
"receivedMessages": [
{
"id": 1,
"dateReceived": "2017-04-22T14:49:36",
"mobile": "5521998430601",
"body": "Obrigado por me avisar",
"shortcode": "30133",
"mobileOperatorName": "Vivo",
"mtId": "hs863223748"
}
]
}
}
The MIT License
Copyright (c) 2017 Wallace Silva
FAQs
aplicação de conexao com a zenvia
The npm package zenvia-api receives a total of 14 weekly downloads. As such, zenvia-api popularity was classified as not popular.
We found that zenvia-api 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.