Details of the key APIs used from the Watson SDK
The following code gets the instance of the NaturalLanguageUnderstanding and analyzes the text by calling analyze:
const NaturalLanguageUnderstandingV1 = require('watson-developer-cloud/natural-language-understanding/v1.js');
const nlu = new NaturalLanguageUnderstandingV1({
version_date: NaturalLanguageUnderstandingV1.VERSION_DATE_2016_01_23
});
nlu.analyze(req.body, (err, results){})