sms-api-js-client

Sms API client

Usage no npm install needed!

<script type="module">
  import smsApiJsClient from 'https://cdn.skypack.dev/sms-api-js-client';
</script>

README

SMS API Node JS client

Install

npm install sms-api-js-client

Usage


var SmsAPIClient = require('sms-api-js-client');

var client = new SmsAPIClient('<your_developer_key_here>');

client.sendSms({
  to: '+640212024999',
  message: 'Hi Buddy !'
}, function(error, message) {
  if (error) {
    console.info(error.message);
    console.info(error.statusCode);
  } else {
    console.info(message);
  };
});