zenvia-nd

1.0.3 • Public • Published

zenvia-nd

npm version

Lightweight and ready to send SMS messages with the Zenvia API.

Usage

Install the package:

npm install zenvia-nd

Example:

// Define Zenvia API credentials
var credentials = {
    username: "user.name",
    password: "abcdefghij"
};

// Require zenvia module
var zenvia = require('zenvia-nd')(credentials);

// Sending a single sms
zenvia.sendSms({
    "sendSmsRequest": {
        "to": "5585996791915",
        "msg": "Hello from API"
    }
}).then(function(data) {
    console.log(data); //Response
}).catch(function(err) {
    console.log("Error: " + err); //Error
});

Readme

Keywords

Package Sidebar

Install

npm i zenvia-nd

Weekly Downloads

3

Version

1.0.3

License

MIT

Unpacked Size

2.08 kB

Total Files

3

Last publish

Collaborators

  • halk_lenson