šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

coolsms-rest-sdk

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

coolsms-rest-sdk

coolsms rest-sdk for node.js

1.0.8
latest
Source
npm
Version published
Weekly downloads
857
-12.91%
Maintainers
1
Weekly downloads
Ā 
Created
Source

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

Keywords

coolsms

FAQs

Package last updated on 01 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts