telebit.js/httpsclient.js

14 lines
327 B
JavaScript
Raw Normal View History

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