Socket
Socket
Sign inDemoInstall

watson-dialog-wrapper

Package Overview
Dependencies
120
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    watson-dialog-wrapper

wrapper for watson dialog


Version published
Weekly downloads
12
increased by1100%
Maintainers
1
Install size
62.6 MB
Created
Weekly downloads
 

Readme

Source

watson-dialog-wrapper

Needed to use bluemix watson but didn't want to setup dialog service all the time with cfenv.

Installation

npm install watson-dialog-wrapper --save

Usage

For Bluemix:

var Dialog = require('watson-dialog-wrapper');
var dialog = new Dialog('my-bluemix-dialog-service-name');

The rest of functionalities are directly from IBM Watson Dialog Service

For hardcoded Credentials:

var Dialog = require('watson-dialog-wrapper');
var dialog = new Dialog({
  username: <username>,
  password: <password>,
  <other dialog params>: <param value>
});

The rest of functionalities are directly from IBM Watson Dialog Service

Added Functionalities

.getDialog(name, cb)

//success returns {dialog_id, name}
//fail returns null

dialog.getDialog('my dialog', function(err, dialog){
  if(err) return console.error(err);
  //do stuff with dialog
})

FAQs

Last updated on 06 Jun 2016

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