This file was automatically generated for kairos by APIMATIC BETA v2.0 on 01/18/2016
The generated code relies on node package manager (npm) being available to resolve dependencies.
Dependencies: node.js request: sudo npm install request
The following shows how import the controllers and use (demonstrated in EmotionAnalysisControllerTest.js):
-
Import the module:
var kairosemotionapilib = require('./kairosemotionapilib');
-
Configure any authentication parameters in configuration.js file:
appId : "app_id" appKey : "app_key"
-
Access various controllers by:
var controller = kairosemotionapilib.kairosemotionapilib; controller.createMedia({file path}, callback); cd into the directory and run node EmotionAnalysisControllerTest.js