examples/nodeapp/main.js
'use strict';
var corbel = require('../../dist/corbel.js');
var CONFIG = {
clientId: 'clientId',
clientSecret: 'clientSecret',
scopes: ['silkroad-qa:client', 'resources:send_event_bus', 'resources:test:test_operations', 'resources:music:read_catalog', 'resources:music:streaming'],
urlBase: 'https://{{module}}-qa.bqws.io/v1.0/'
};
var cd = corbel.getDriver(CONFIG);
cd.iam.token().create().then(function() {
console.log('ok');
}).catch(function() {
console.log('error');
});