Node.js fetching Twitter Streaming API - EADDRNOTAVAIL
- by Jordan Scales
I have the following code written in node.js to access to the Twitter Streaming API. If I curl the URL below, it works. However, I cannot get it to work with my code.
var https = require('https');
https.request('https://USERNAME:PASSWORD@stream.twitter.com/1.1/statuses/sample.json', function(res) {
res.on('data', function(chunk) {
var d =…