Updated client library to provide promise-based Angular call.