var Ceic = require('ceic_api');
var accessToken = "ENTER YOUR API KEY HERE";
var exampleInsightId = "EXAMPLE INSIGHT ID";
var apiClient = new Ceic.ApiClient();
var insightsApi = new Ceic.InsightsApi();
insightsApi.getInsight(exampleInsightId, {token: accessToken}).then(function(insightsResult) {
// Access insight result data
var insight = insightsResult.data[0];
var insightCategory = insight.category;
}, function(error) {
// Handle error
});