# apiai-proxy

> Node.js SDK for api.ai, with proxy support

Latest version **1.0.3** (published 2016-09-06) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install apiai-proxy
pnpm add apiai-proxy
yarn add apiai-proxy
bun add apiai-proxy
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2016-09-06 |
| First published | 2016-09-06 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dmitriy Kuragin, Victor Palacios |
| Maintainers | sixtop |
| Keywords | apiai |

## Links

- npm: https://www.npmjs.com/package/apiai-proxy
- Repository: https://github.com/sixtop/api-ai-node-js
- Homepage: https://github.com/sixtop/api-ai-node-js#readme
- Issues: https://github.com/sixtop/api-ai-node-js/issues
- npm.io page: https://npm.io/package/apiai-proxy

## Recent versions

- 1.0.3 (latest) — 2016-09-06
- 1.0.2 — 2016-09-06
- 1.0.1 — 2016-09-06
- 1.0.0 — 2016-09-06

## README

# 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](http://api.ai) natural language processing service with your Node.js application.

* [Installation](#installation)
* [Usage](#usage)

# Installation

* Install [Node.js](https://nodejs.org/)
* Install Api.ai SDK with `npm`:
```shell
npm install apiai-proxy
```

# Usage
* Create `main.js` file with the following code:
```javascript
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.
```shell
node main.js
```
* Your can find more examples in [`examples`](examples) directory.

---
_Source: https://npm.io/package/apiai-proxy · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
