2016-10-11 23:29:34 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var request = require('request');
|
|
|
|
|
|
|
|
function run(copts) {
|
2016-10-18 21:33:07 +00:00
|
|
|
var tunnelUrl = 'https://tunnel.daplie.com/?access_token=' + copts.token;
|
2016-10-11 23:29:34 +00:00
|
|
|
request.get(tunnelUrl, { rejectUnauthorized: false }, function (err, resp) {
|
|
|
|
console.log('resp.body');
|
|
|
|
console.log(resp.body);
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports.connect = run;
|