To get started:
npm install node-foauth
To use it:
var foauth = require('node-foauth')('email@example.com', 'password');
foauth like you'd use request, with the exception that you have to use
foauth.get instead of the convenience form
foauth(uri). While making requests through node-foauth, your request URIs will be transparently converted to use https://foauth.org (meaning you can make requests the original API URLs), and your basic auth credentials will be sent along in a header.