private GitLabClient(string hostUrl, string apiToken, string accessToken) { _api = new API(hostUrl, apiToken, accessToken); Users = new UserClient(_api); Projects = new ProjectClient(_api); Issues = new IssueClient(_api); Groups = new NamespaceClient(_api); Labels = new LabelClient(_api); }
public static Label GetLabelByNetTitle(String friendlyTitle, String username, String password) { using (LabelClient labelClient = new LabelClient(BlogSection.GetConfigSection().Service.Endpoint.Label)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ return(labelClient.GetLabelByNetTitle(friendlyTitle)); } }
public static List <Label> GetBlogLabelList(String blogGuid, String username, String password) { using (LabelClient labelClient = new LabelClient(BlogSection.GetConfigSection().Service.Endpoint.Label)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ return(labelClient.GetBlogLabelList(blogGuid)); } }
public static void ApplyLabel(String blogEntryGuid, String labelGuid, String username, String password) { using (LabelClient labelClient = new LabelClient(BlogSection.GetConfigSection().Service.Endpoint.Label)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ labelClient.ApplyLabel(blogEntryGuid, labelGuid); } }
public static Label GetLabelByFriendlyTitle(String friendlyTitle, String username, String password) { using (LabelClient labelClient = new LabelClient(MinimaConfiguration.ActiveLabelServiceEndpoint)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ return(labelClient.GetLabelByFriendlyTitle(friendlyTitle)); } }
public static List <Label> GetBlogLabelList(String blogGuid, String username, String password) { using (LabelClient labelClient = new LabelClient(MinimaConfiguration.ActiveLabelServiceEndpoint)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ return(labelClient.GetBlogLabelList(blogGuid)); } }
public static void ApplyLabel(String blogEntryGuid, String labelGuid, String username, String password) { using (LabelClient labelClient = new LabelClient(MinimaConfiguration.ActiveLabelServiceEndpoint)) { labelClient.ClientCredentials.UserName.UserName = username; labelClient.ClientCredentials.UserName.Password = password; //+ labelClient.ApplyLabel(blogEntryGuid, labelGuid); } }