wit.ai-http-api
A promise / callback API for the NLP platform wit.ai.
This library is aimed at people, which try to automate the creation and deployment of a wit.ai application.
Installation
npm i --save wit.ai-http-api
Usage
Initialization
let WitAi = ;let wit = processenvWIT_TOKEN;
Calllback Style
Creating an app
let params = name: 'MyAwesomeApp' lang: 'en' private: 'true' desc: 'Test';witapps
Promise support
This library supports native promises.
Creating an app
let params = name: 'MyAwesomeApp' lang: 'en' private: 'true' desc: 'Test';try let result = await witapps; catch e throw e;
API
For a (semi) complete API documentation please refer to the Tests and the API docs.
Parameters
Currently the needed parameters are not documented. Please refer to the official Wit.ai HTTP API documentation.
Contributing
Contributions are highly appreciated. Please make sure your contribution align with the eslint standards in this project. If you feel like your code belongs in the master, feel free to submit a pull request.
Issues
In case of issues, submit a Github Issue here.