@asdofindia/infobip

Infobip Node Client

Usage no npm install needed!

<script type="module">
  import asdofindiaInfobip from 'https://cdn.skypack.dev/@asdofindia/infobip';
</script>

README

Infobip npm version

Infobip API Client for Node.js using Infobip API

Installation

$ npm install --save infobip

Usage

Basic messaging example

var infobip = require('infobip');

//Initialize the client
var client = new infopib.Infobip('username', 'password');

//Set the message
var message = {from: "InfoSMS", to : "41793026727", text : "My first Infobip SMS"};

//Send an SMS
client.SMS.send(message,function(err, response){
   console.log(response);
});

Promise are supported


client.SMS.send(message).then(res => console.log(res)).catch( err=> console.log(err));

License

This library is licensed under the Apache License, Version 2.0