Socket
Socket
Sign inDemoInstall

mobizon-node

Package Overview
Dependencies
23
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mobizon-node

Biblioteca NodeJS para trabalhar com os serviços Mobizon API


Version published
Weekly downloads
6
decreased by-79.31%
Maintainers
1
Install size
1.37 MB
Created
Weekly downloads
 

Readme

Source

Mobizon

Biblioteca para comunicação API HTTP Mobizon SMS

GitHub language count GitHub top language GitHub repo size NPM downloads GitHub license

Instalação

Baixe o node em nodejs.org e instale-o, caso ainda não tenha,

Pacote: npm i mobizon-node ou yarn add mobizon-node

Configuração:

const { mobizon } = require('mobizon-node');

mobizon.setConfig({
  apiServer: 'https://api.mobizon.com.br',
  apiKey: 'br01xxxxxx',
  format: 'json',
});

Exemplos de uso

Confira em docs todos os response status code.

(async () => {
  /** Saldo */
  const getBalance = await mobizon.getBalance();

  console.log(getBalance);

  /** Encurtar URL */
  const createShort = await mobizon.createShort({
    data: {
      fullLink: 'https://mobizon.com.br',
      status: 1,
      expirationDate: '',
      comment: 'Shortened link.',
    },
  });

  console.log(createShort);

  /** Enviar SMS */
  const sendSms = await mobizon.sendSms({
    recipient: '5511941439844',
    from: '',
    text: 'SMS sent by Mobizon.',
  });

  console.log(sendSms);
})();

Dê uma olhada em examples para mais casos de uso.

Licença

Documentação pt-BR.
Copyright © 2021 caioagiani.
Este projeto é licenciado MIT.

Keywords

FAQs

Last updated on 18 Jun 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc