getUsers() 공개 메소드

Get all piwik users with the given list of logins
public getUsers ( string userLogins = null ) : ArrayList
userLogins string
리턴 System.Collections.ArrayList
        private static void GetUsers()
        {
            var usersManager = new UsersManager();
            usersManager.setTokenAuth("XYZ");

            String[] logins =
            {
                "foobar",
                "barfoo"
            };

            var users = usersManager.getUsers(logins);

            Console.WriteLine("Found " + users.Count + " users." + Environment.NewLine);

            foreach (Hashtable user in users)
            {
                Console.WriteLine("------------------------------");
                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"));
            }
        }