Skip to content
Permalink
 
 
Cannot retrieve contributors at this time
26 lines (24 sloc) 612 Bytes
// Library to make simplified HTTP client requests
// if not installed run npm install request
var request = require('request');

// HTTP GET request to the cloud
request.get({
    url: backendUrl + '/api/1.0/signals/shadows',
    headers: headers,
    json: true
}, function (error, response) {
    // OK
    if (response && response.statusCode == 200) {
        console.log('response', response.body);
    }
        // OK from API response
    if(response && response.statusCode != 200){
        console.error(response.body);
    }
    // OK
    if (error) {
        console.error(error);
    }
});
You can’t perform that action at this time.