var client = require('./lib/client'); This works >>>> //Get authorization Token client.authorize('00000', function (err, auth) { //List Buckets client.listBuckets(auth, function (err, resp) { console.log(resp); }); }); This is what seems logical to me >>>> //Get authorization Token client.authorize('account#', function (err, auth) {}); //List Buckets client.listBuckets(auth, function (err, resp) { console.log(resp); });