typrint source lang-javascript"><code>var watson = require('watson-developer-cloud');

var natural_language_classifier = watson.natural_language_classifier({
  url: 'https://gateway.watsonplatform.net/natural-language-classifier/api',
  username: '&lt;username>',
  password: '&lt;password>',
  version: 'v1'
});

natural_language_classifier.classify({
  text: 'Is it sunny?',
  classifier_id: '&lt;classifier-id>' },
  function(err, response) {
    if (err)
      console.log('error:', err);
    else
      cons