From 6584b1ef891d57e0a7cc8e4990be98927acdf072 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Tue, 11 Oct 2016 17:29:34 -0600 Subject: [PATCH] move https from ws --- httpsclient.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 httpsclient.js 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;