node package manager


HPCloud-JS: A JavaScript library for working with HP Cloud services

This library provides JavaScript bindings for HP Cloud. API-wise, it is similar to HPCloud-PHP, but with asynchronous methods.

This has been developed on Node.js only.


Authenticating with a username and password:

var IdentityServices = require('hpcloud').IdentityServices;
var username = 'me';
var password = 'secret';
var tenantId = 12345
var endpoint = '';
var idService = new IdentityServices(endpoint);
idService.authenticateAsUser(username, password, tenantId, function (success, identity) {