coolsms-rest-sdk

1.0.8 • Public • Published

coolsms-rest-sdk

coolsms rest-sdk for node.js Documentation

Build Status npm version Dependency Status

Installation

npm install coolsms-rest-sdk

Test

npm test

Usage

var Coolsms = require('coolsms-rest-sdk');
var client = new Coolsms({
  key: 'your API key',
  secret: 'your API secret key'
});
 
client.sms.send({
  to: '00000000000',    // recipient
  from: '11111111111',  // sender
  type: 'SMS',          // SMS, LMS, MMS
  text: 'your message',
}, function (error, result) {
  if(error) {
    console.log(error);
  } else {
    console.log(result);
  }
});

Available resources & methods

Where you see params it is a plain JavaScript object, e.g. { text: 'Hello world!' } param is not need to include authentication information

License

MIT

/coolsms-rest-sdk/

    Package Sidebar

    Install

    npm i coolsms-rest-sdk

    Weekly Downloads

    986

    Version

    1.0.8

    License

    none

    Unpacked Size

    14.2 kB

    Total Files

    14

    Last publish

    Collaborators

    • a0ly