Skip to content

Instantly share code, notes, and snippets.

@hai5nguy
Created March 24, 2016 13:31
Show Gist options
  • Save hai5nguy/c8d4ef90c659ff7db74e to your computer and use it in GitHub Desktop.
Save hai5nguy/c8d4ef90c659ff7db74e to your computer and use it in GitHub Desktop.
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