0.0.4 • Published 9 years ago

visualstudio-client v0.0.4

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

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-client

Single 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
    });
SectionState
TokensDone
ProfileDone
AccountsDone
ProjectsDone
BuildsDone
Work Item TrackingPending
Project CollectionsPending
TeamsPending

etc

Third Party LibraryLink
RSVP
URIjs
request
mocha
should
proxyquire
0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago