Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

buzz-expert

0.0.2 • Public • Published

What for ?

Send SMS and MMS using Buzz Expert API.

More

Minimalist module. Messages are sent on MARKETING type. Module changes between OADC and label by itself, in case of an SMS or MMS to be pushed.

Warning

Max 2 medias. Media must not be > than 60Ko (500 000 bytes).

How to use it ?

const BEAPI = require('buzz-expert');
const BuzzExpert = new BEAPI({
    login: "login",
    password: "password",
    label: "label created withing your Buzz Expert account, OADC or label is selected by the module itself"
});
 
BuzzExpert.connect((err) => {
    if (err) return console.error(err);
    
    BuzzExpert.sendMMS('0123456789', [
        { type: "file", filename: "/var/toto.gif" },
        { type: "text", content: "Hello World !" }
    ], (err) => {
        if (err) return console.error(err);
 
        console.log("Message sent!");
    });
});

GitHub Repository

install

npm i buzz-expert

Downloadsweekly downloads

2

version

0.0.2

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability