addUser() 공개 메소드

Add a piwik user
public addUser ( string userLogin, string password, string email, string alias = null ) : Hashtable
userLogin string
password string
email string
alias string
리턴 System.Collections.Hashtable
        private static void AddUser()
        {
            var usersManager = new UsersManager();
            usersManager.setTokenAuth("XYZ");

            var response = usersManager.addUser("foobar", "mypassword", "*****@*****.**", "Foo Bar");

            if (!response["result"].Equals("success"))
            {
                Console.WriteLine("Error! " + response["message"]);
                return;
            }

            Console.WriteLine("Brand New User successfully created.");
        }