This package has been deprecated

Author message:

hpcloud-js is now deprecated and has been superseded by pkgcloud.

hpcloud-js

1.0.0 • Public • Published

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.

Usage

Authenticating with a username and password:

var IdentityServices = require('hpcloud').IdentityServices;
 
var username = 'me';
var password = 'secret';
var tenantId = 12345
var endpoint = 'https://region-a.geo-1.identity.hpcloudsvc.com:35357/v2.0';
 
var idService = new IdentityServices(endpoint);
 
idService.authenticateAsUser(username, password, tenantId, function (success, identity) {
  console.log(identity.token());
});

Package Sidebar

Install

npm i hpcloud-js

Weekly Downloads

9

Version

1.0.0

License

none

Last publish

Collaborators

  • technosophos
  • mattfarina