public void GetUsers()
        {
            // Create the manager with the api key
            Route4MeManager route4Me = new Route4MeManager(c_ApiKey);

            GenericParameters parameters = new GenericParameters()
            {
            };

            // Run the query
            string errorString;

            Route4MeManager.GetUsersResponse dataObjects = route4Me.GetUsers(parameters, out errorString);

            Console.WriteLine("");

            if (dataObjects != null)
            {
                if (dataObjects.results != null)
                {
                    Console.WriteLine("GetUsers executed successfully, {0} users returned", dataObjects.results.Length);
                    Console.WriteLine("");
                }
                else
                {
                    Console.WriteLine("GetUsers error: {0}", errorString);
                }
            }
            else
            {
                Console.WriteLine("GetUsers error: {0}", errorString);
            }
        }
Beispiel #2
0
        /// <summary>
        /// The example refers to the process of getting the existing sub-users.
        /// </summary>
        public void GetUsers()
        {
            // Create the manager with the api key
            var route4Me = new Route4MeManager(ActualApiKey);

            var parameters = new GenericParameters();

            // Run the query
            Route4MeManager.GetUsersResponse dataObjects = route4Me.GetUsers(parameters, out string errorString);

            PrintTestUsers(dataObjects, errorString);
        }