Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

nexmofy

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nexmofy

Nexmo callback receiver which based on EventEmiiter

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

nexmofy

NPM version NPM downloads Dependencies status MIT license

Nexmo callback receiver which based on Node's EventEmiiter. Nexmofy provides extensible APis.

Getting Started

Create new HTTP Server which handle Callback Requests.

var nexmofy = require('nexmofy');
nexmofy.listen(9000);

... or you can register routes on your own Express Application.

var express = require('express'),
    nexmofy = require('nexmofy');

var myApp = express();
...
nexmofy.registerRoutes(myApp);

Register Event Listeners

nexmofy.channel.on('onSMSReceived', function (message) {
    console.log('got new message: ', message);
});

Register Callback URL on Nexmo Dashboard

**NOTE: nexmofys API Endpoint is:** /api/nexmo/sms/callback`.

Enjoy! :)

Events

onSMSReceived(payload)

Payload Information

NameTypeDescriptionOriginal Key
idStringMessage IDmessageId
fromStringPhone Number which Message was sent from.msisdn
toStringPhone Number which Message was sent to.to
textStringMessage Bodytext
typeStringTypetype
keywordStringKeywordkeyword
timestampDateMessage timestampmessage-timestamp

Milestone

  • Changeable API Endpoint path

Author

MooYeol, Lee (Prescott)

License

MIT

Keywords

nexmo

FAQs

Package last updated on 01 Nov 2015

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