swinarta / co-nexmo

co wrapper for nexmo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

co-nexmo

co wrapper for nexmo

Installation

$ npm install co-nexmo

Example

var Nexmo = require('co-nexmo');

var nexmo = Nexmo({
  key: 'key',
  secret: 'secret'
});

...
var balance = yield nexmo.getBalance();

Supported API

###Get Balance

getBalance()

###Search Message

searchMessages(date, mobileNumber)

###Send Text Message

sendTextMessage(fromNumber, toMobileNumber, text)

###Send Text Short Code

sendTextShortCode(mobileNumber, pin)

License

MIT

About

co wrapper for nexmo

License:MIT License


Languages

Language:JavaScript 100.0%