public getUser ( string userLogin ) : |
||
userLogin | string | |
Результат |
private static void GetUser() { var usersManager = new UsersManager(); usersManager.setTokenAuth("XYZ"); var users = usersManager.getUser("foobar"); // When user not found PiwikAPIException is thrown. // So we can assume the ArrayList always have an element. Hashtable user = (Hashtable)users[0]; Console.WriteLine("Login:\t\t\t" + user["login"]); Console.WriteLine("E-Mail:\t\t\t" + user["email"]); Console.WriteLine("Alias:\t\t\t" + user["alias"]); Console.WriteLine(String.Empty); Console.WriteLine("Password Hash:\t\t" + user["password"]); Console.WriteLine("Token Auth:\t\t" + user["token_auth"]); Console.WriteLine(String.Empty); Console.WriteLine("Date Registered:\t" + user["date_registered"]); Console.WriteLine("Is Superuser?:\t\t" + ((int)user["superuser_access"] == 0 ? "No" : "Yes")); }