1.0.3 • Published 1 year ago

zenvia-nd v1.0.3

Weekly downloads
3
License
MIT
Repository
github
Last release
1 year ago

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
});
1.0.3

1 year ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago