1.0.8 • Published 5 years ago

coolsms-rest-sdk v1.0.8

Weekly downloads
56
License
-
Repository
github
Last release
5 years ago

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

1.0.8

5 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago

0.1.0

8 years ago