Skip to content

Instantly share code, notes, and snippets.

@apucacao
Created March 3, 2016 06:48
Show Gist options
  • Save apucacao/8379aaf7fa723de91842 to your computer and use it in GitHub Desktop.
Save apucacao/8379aaf7fa723de91842 to your computer and use it in GitHub Desktop.
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