Created
March 3, 2016 06:48
-
-
Save apucacao/8379aaf7fa723de91842 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VSS.require(["TFS/DistributedTask/TaskAgentRestClient"], function(RestClient) { | |
var webContext = VSS.getWebContext(); | |
var client = RestClient.getClient(); | |
client.getServiceEndpoints(webContext.project.id).then( | |
function(endpoints) { | |
// ... | |
}, | |
function(error) { | |
console.log('error getting service endpoints:', error); | |
} | |
); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment