🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

askfast

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

askfast

Send Email, sms and start calls right form your node.js app, with the simple ASK Fast API

0.3.0
latest
Source
npm
Version published
Weekly downloads
6
-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

ASK Fast node API

Send Email, sms and start calls right form your node.js app, with the simple ASK Fast API

how to use:

  • Create free ASK Fast account at portal.ask-fast.com

  • install package

     npm install askfast
    
  • Send sms message

     var RestClient = require('askfast').RestClient;
    
     var askfast = new RestClient()
     askfast.sendSMSMessage('+31612345678', 'text://This is a test message from ASK Fast'}).then(function(result){
         console.log(result)
     })
    

To send email use:

    askfast.sendEMAILMessage()

To start a call use:

    askfast.startCall('+31612345678', 'http://api.ask-fast.com/question/comment?message=This is a test message from ASK Fast')

Create dialog

ASK Fast provides you the posibility to create more complex dialogs with two way functionality. Below shows an example for a two way dialog which can be used with sendSMSMessage , sendEMAILMessage and startCALL functions.

The basic principle is very easy:

  • Create a publicly accessible server

  • Create a dialog

  • Initiate the dialog

    var Dialog = require('askfast').Dialog; var server = http.createServer(function (request, response) {

     // Create a new instance of the object.
     var dialog = new Dialog()  ;
     dialog.say("Hello, World!");
     
     // Render out the JSON for consume.
     response.writeHead(200, {'Content-Type': 'application/json'});
     response.end(dialog.finalize());
    

    }).listen(8000);

Keywords

askfast

FAQs

Package last updated on 15 Sep 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