Esempio n. 1
0
        private static void AddNewGroup()
        {
            var newGroup = new Apigee.Net.Models.ApigeeGroup();

            Console.WriteLine("Creating a New Charity Orginization: (group)");
            Console.WriteLine("Tite");
            newGroup.Title = Console.ReadLine();
            Console.WriteLine("Path");
            newGroup.Path = Console.ReadLine();

            Console.WriteLine("Creating Group...");
            try
            {
                aClient.CreateGroup(newGroup);
                Console.WriteLine("Success! Group Created..");
            }
            catch (Exception e)
            {
                Console.WriteLine("Error! Creation failed.");
                Console.WriteLine("Reason: " + e.Message + " ::" + e.GetType().ToString());
            }
        }
Esempio n. 2
0
        private static void AddNewGroup()
        {
         var newGroup = new Apigee.Net.Models.ApigeeGroup();
            Console.WriteLine("Creating a New Charity Orginization: (group)");
            Console.WriteLine("Tite");
            newGroup.Title =  Console.ReadLine();
            Console.WriteLine("Path");
            newGroup.Path = Console.ReadLine();

            Console.WriteLine("Creating Group...");
            try
            {
                aClient.CreateGroup(newGroup);
                Console.WriteLine("Success! Group Created..");
            }
            catch (Exception e)
            {
                Console.WriteLine("Error! Creation failed.");
                Console.WriteLine("Reason: " + e.Message + " ::" + e.GetType().ToString());
            }
        
        }