telebit.js/httpsclient.js

14 lines
327 B
JavaScript

'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;