Socket
Socket
Sign inDemoInstall

fortumo

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fortumo

Unofficial bindings for Fortumo SMS Payment API


Weekly downloads
0
Maintainers
1
Install size
3.50 MB
Created
Weekly downloads
 

Readme

Source

node-fortumo

node-fortumo is unofficial binding for the Fortumo SMS payment API. You can listen for incoming SMS messages and response to them with ease. See example/server.js for usage.

Usage

  1. Set up the account
  • Create an account at fortumo.com
  • Set up a new Mobile Payments/Premium SMS API service here
  • Set http://yourserver.com/_incoming_sms as the receiving URL and optionally charset to UTF-8 if you want to use non-latic characters
  1. Set up the server
  • install node-fortumo with npm install fortumo

Sample script:

var FortumoSMSServer = require("fortumo").FortumoSMSServer;

var options = {
    service_id: "c4d18b86cc3bd0cccf5436b4995ba42d", // public service ID
    secret:     "7a518954b359471d31efaa2cefdfd8d7"  // secret service token
}

var fortumo = new FortumoSMSServer(options);
fortumo.listen(80);

fortumo.on("sms", function(sms, response){
    console.log(sms); // outputs the sms data to the console
    response("received!");
});

See example/server.js for a better example

Keywords

FAQs


Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc