public static async Task <List <string> > GetUserGroups(string user, string masterPassword) { using (var ocCommand = new OCGetUserGroups(user)) { ocCommand.setCredentials("admin", masterPassword); await ocCommand.sendRequest(); return(ocCommand.groupsList); } }
public static async Task <List <string> > GetUserGroups(string user) { using (var ocCommand = new OCGetUserGroups(user)) { ocCommand.setCredentials(Credentials); await ocCommand.sendRequest(); return(ocCommand.groupsList); } }