varHeroku=require('heroku.node');varclient=newHeroku({email: '...',api_key: '...'});// Do something with clientclient.apps.list(function(err,apps){console.log(apps);});// You can also use any method as a promiseclient.apps.list().then(function(apps){console.log(apps);});