/// <summary> /// This console application demonstrates all the Google Apps /// Mail Settings API calls. /// </summary> /// <param name="args">Command-line arguments: args[0] is /// the domain, args[1] is the admin email address, args[2] /// is the admin password, and args[3] is the username to be modified /// by all actions. /// /// Example: GoogleMailSettingsDemo example.com [email protected] my_password user_name</param> public static void Main(string[] args) { if (args.Length != 4) { Console.WriteLine("Syntax: AppsDemo <domain> <admin_email> <admin_password> <test_username>"); } else { domain = args[0]; adminEmail = args[1]; adminPassword = args[2]; testUserName = args[3]; GoogleMailSettingsService service = new GoogleMailSettingsService(domain, "apps-demo"); service.setUserCredentials(adminEmail, adminPassword); RunSample(service); } }