Ejemplo n.º 1
0
        public static async Task GetSupervisorSSO()
        {
            try
            {
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine("Getting a Supervisor SSO Link...");

                string superSSOLink = await TWP_SDK.GetSSOLink(API_SECRET,
                                                               ACCOUNTANT_ID, SITE_ID, PartnerAPIToken,
                                                               APIProduct.TWP_Supervisor_SSO, "dtc-super");

                Console.WriteLine($"Supervisor SSO Link: {superSSOLink}");
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Supervisor SSO: An exception occured: {ex.Message}");
            }
        }
Ejemplo n.º 2
0
        public static async Task GetEmployeeSSO()
        {
            try
            {
                Console.WriteLine();
                Console.WriteLine();
                Console.WriteLine("Getting an Employee SSO Link...");

                string empSSOLink = await TWP_SDK.GetSSOLink(API_SECRET,
                                                             ACCOUNTANT_ID, SITE_ID, PartnerAPIToken,
                                                             APIProduct.TWP_Employee_SSO, "EMP042");

                Console.WriteLine($"Employee SSO Link: {empSSOLink}");
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Employee SSO: An exception occured: {ex.Message}");
            }
        }