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.
mobizon-br
Advanced tools
Readme
Baixe o node em nodejs.org e instale-o, caso ainda não tenha,
Pacote: npm i mobizon-br
ou yarn add mobizon-br
const mobizon = require('mobizon-br');
mobizon.setConfig({
apiServer: 'https://api.mobizon.com.br',
apiKey: process.env.API_KEY,
format: 'json',
});
Confira em docs todos os response status code.
(async () => {
/** Saldo */
const getBalance = await mobizon.getBalance();
console.log(getBalance);
/** Encurtar URL */
const short = await mobizon.short({
fullLink: 'https://mobizon.com.br',
status: 1,
expirationDate: '',
comment: 'MobizonBR',
});
console.log(short);
/** Enviar SMS */
const sendSms = await mobizon.sendSms({
recipient: process.env.NUMBER,
from: '',
text: 'MobizonBR',
});
console.log(sendSms);
})();
Dê uma olhada em example.js para mais casos de uso.
jest --setupFiles dotenv/config --detectOpenHandles --forceExit
PASS tests/mobizon.test.js
Mobizon feature tests
✓ should receive the account balance (323 ms)
✓ should create short link (447 ms)
✓ should get short link (349 ms)
✓ should update short link (325 ms)
✓ should delete short link (390 ms)
✓ should send a test sms (610 ms)
✓ should list the sms sent by id (312 ms)
✓ should list the all sms sent (762 ms)
Test Suites: 1 passed, 1 total
Tests: 8 passed, 8 total
Snapshots: 0 total
Time: 4.208 s
Ran all test suites.
Done in 4.65s.
Copyright © 2021 caioagiani.
Este projeto é licenciado MIT.
FAQs
Mobizon é um poderoso gateway de SMS e ferramentas de marketing online.
The npm package mobizon-br receives a total of 1 weekly downloads. As such, mobizon-br popularity was classified as not popular.
We found that mobizon-br 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.