We’ve released a new npm module to assist in integrating PhoneGap Build with any nodeJS scripts or workflows that need easy access to the PhoneGap Build REST api. It supports promises and supports nodeJS ≥ 4.0.0
To install in your projects:
> yarn add pgb-apior> npm install pgb-api --save
Here is a snippet to print out your apps to the console:
const pgb = require('pgb-api')()pgb.addAuth('your-api-token')
pgb.getApps()
.then(console.log)
.catch(console.error)
A cheatsheet with all functions is here.
Follow me on twitter @brettrudd