omn-insights
v1.0.10
Published
API for OmniChannel Insights
Downloads
4
Readme
OmniChannel Insights API:
Usage:
var config = { 'url': 'https://node.omn.bg:10001/events', 'api_key': 10203040, 'api_secret': 'MY_VERY_SECRET_KEY', 'name': 'MY_PRETTY_DEVICE' };
var omn = require('omn-insights')(config); // send(string $type, Array $data);
omn.send('clock', {'string': 'LS|DA12|TI13|'});
omn.get('/insights/rooms', {'serial_number': 'plovdiv-hotel-clock'}) .then(function(data) { console.log(data); });