mirror of
https://git.coolaj86.com/coolaj86/telebit.js.git
synced 2025-04-21 19:40:37 +00:00
move https from ws
This commit is contained in:
parent
1b0ce88988
commit
6584b1ef89
13
httpsclient.js
Normal file
13
httpsclient.js
Normal 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;
|
Loading…
x
Reference in New Issue
Block a user