1.0.3 • Published 8 years ago

apiai-proxy v1.0.3

Weekly downloads
4
License
Apache 2.0
Repository
github
Last release
8 years ago

Node.js SDK for Api.ai, with proxy support

This is a fork that provides proxy support for api-ai-node-js.

This plugin allows integrating agents from the Api.ai natural language processing service with your Node.js application.

Installation

  • Install Node.js
  • Install Api.ai SDK with npm:
npm install apiai-proxy

Usage

  • Create main.js file with the following code:
var apiai = require('apiai');

var app = apiai("<your client access token>");

var options = {    
    proxyHost: 'proxy-server.com',
    proxyPort: 433
};

var request = app.textRequest('<Your text query>', options);

request.on('response', function(response) {
    console.log(response);
});

request.on('error', function(error) {
    console.log(error);
});

request.end()
  • Run following command.
node main.js
  • Your can find more examples in examples directory.
1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago