Get a Google client login token from node.
$ npm install google-client-login
var login = require('google-client-login'); login('user@gmail.com', 'password', 'analytics', function (err, token) { // use the token });
MIT