0.0.4 • Published 11 years ago
visualstudio-client v0.0.4
visualstudioapi
Simple node / javascript class for working with the visual studio online api. The api uses RSVP to turn the requests into promises. This allows you to chain requests
Install
# using npm
npm install visualstudio-clientSingle Promise
var visualstudio = require("visualstudio-client");
var api = new visualstudio.Client(token);
api.getProfile().then(function (result) {
var profile = result.data;
// do something with the profile
});Chained Promises
var visualstudio = require("visualstudio-client");
var api = new visualstudio.Client(token);
api.getProfile().then(function (result) {
var profile = result.data;
return api.getAccountsByOwner(profile.id);
}).then(function (result) {
var accounts = result.data;
// do something with the accounts
}).catch(function (error){
//handle error from first or second call
});| Section | State |
|---|---|
| Tokens | Done |
| Profile | Done |
| Accounts | Done |
| Projects | Done |
| Builds | Done |
| Work Item Tracking | Pending |
| Project Collections | Pending |
| Teams | Pending |
etc
| Third Party Library | Link |
|---|---|
| RSVP | |
| URIjs | |
| request | |
| mocha | |
| should | |
| proxyquire |