Example #1
0
        static void DemoSynchronousCalls(LoginClient login, EmployesClient rh)
        {
            Console.WriteLine("Synchronous calls demo");
            //Example of Sync conde
            //Call Login api. This call will also set up necessary cookie
            UpdateResultWithId loginResult = login.ApiLogin(apiKey);

            if (!CheckLogin(loginResult))
            {
                return;
            }
            //getting list of actives (not deleted) users
            var employyes = rh.GetAllRessources(true);

            PrintUsers(employyes);
            //logining out. This is for demo purpose only
            _ = login.LogOut();
        }