RWElephant provides a public API, but it doesn't provide all of the information you might need. This logs into the same inventory system you would use from your browser.
This uses promises because those apparently those are cool now.
I've only added what I've needed so far.
var RWElephant =var rwe =domain: 'example' //username: 'username'password: 'password';rwe;