function getRepositoryDetails(tfsEndpoint, repositoryId, projectId){
    var handler = webApim.getBasicHandler(tfsEndpoint.Username, tfsEndpoint.Password);
    var gitClient = new webApim.WebApi(tfsEndpoint.Url, handler).getGitApi();
    var promise = gitClient.getRepository(repositoryId, projectId);

    return promise;
}
Beispiel #2
0
function getGalleryAPI(pat) {
    var authHandler = WebApi_1.getBasicHandler('oauth', pat);
    var vsoapi = new WebApi_1.WebApi('oauth', authHandler);
    return vsoapi.getGalleryApi('https://marketplace.visualstudio.com');
}