move https from ws

This commit is contained in:
AJ ONeal 2016-10-11 17:29:34 -06:00
parent 1b0ce88988
commit 6584b1ef89
1 changed files with 13 additions and 0 deletions

13
httpsclient.js Normal file
View File

@ -0,0 +1,13 @@
'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;