meaning-cloud
v1.1.10
Published
NodeJS Client for interact with Meaning Cloud API.
Downloads
34
Maintainers
Readme
meaning-cloud
NodeJS Client for interact with Meaning Cloud API.
Install
npm install meaning-cloud --save
If you want to use in the browser (powered by Browserify):
bower install meaning-cloud --save
and later link in your HTML:
<script src="bower_components/meaning-cloud/dist/meaning-cloud.js"></script>
Usage
First require the library:
var MeaningCloud = require('meaning-cloud');
Minimal configuration:
var meaning = MeaningCloud({
key: process.env.API_KEY // API Key. Required.
secure: true // HTTPS or HTTPS. Optional, true by default.
uri: 'custom-uri' // URI to create the API endpoints. Optional.
});
A list of default endpoints and API versions is provided. If you need a particular version or endpoint, specify it in the constructor using the endpoint keywords, for example:
var meaning = MeaningCloud({
key: process.env.API_KEY
endpoints: {
topics_extraction: '/topics-1.1'
}
});
The library support standard NodeJS callback and Promise workflow as well.
Examples
See example.js
License
MIT © Kiko Beats