-
-
Save hai5nguy/c8d4ef90c659ff7db74e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var https = require('https'); | |
var options = { | |
hostname: 'gbfs.bcycle.com', | |
port: 443, | |
path: '/bcycle_pacersbikeshare/station_information.json', | |
method: 'GET' | |
}; | |
var req = https.request(options, function (res) { | |
res.on('data', function (d) { | |
process.stdout.write(d); | |
}); | |
}); | |
req.end(); | |
req.on('error', function (e) { | |
console.error(e); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment