diff --git a/httpsclient.js b/httpsclient.js new file mode 100644 index 0000000..930b77e --- /dev/null +++ b/httpsclient.js @@ -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;