flytrack
Advanced tools
Comparing version 0.0.8 to 0.0.9
{ | ||
"name": "flytrack", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "track flights and more using an api key", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -10,12 +10,16 @@ // FLYTRACK ALLGLOBALFLIGHTINFO FILE | ||
if (typeof apikey != 'string') apikey = JSON.stringify(apikey) | ||
http('https://aviation-edge.com/v2/public/flights?key=' + apikey, function (error, response, body) { | ||
if (error) { | ||
console.warn('error:', error); | ||
} | ||
console.log('statusCode: ', response && response.statusCode) | ||
console.log('body: ', body) | ||
}); | ||
function agFI(cb) { | ||
http('https://aviation-edge.com/v2/public/flights?key=' + apikey, function (error, response, body) { | ||
if (response.statusCode === 200) { | ||
console.log('statusCode: ', response && response.statusCode) | ||
console.log('body: ', body) | ||
} | ||
if (error) { | ||
console.warn('error:', error); | ||
} | ||
}); | ||
} | ||
} | ||
module.exports.get = Main; |
5492
28