🚀 Big News:Socket Has Acquired Secure Annex.Learn More
Socket
Book a DemoSign in
Socket

mobizon-node

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mobizon-node

Biblioteca NodeJS para trabalhar com os serviços Mobizon API

latest
Source
npmnpm
Version
0.5.5
Version published
Weekly downloads
36
-12.2%
Maintainers
1
Weekly downloads
 
Created
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

mobizon

FAQs

Package last updated on 18 Jun 2022

Did you know?

Socket

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