forked from coolaj86/telebit.js
		
	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