Esempio n. 1
0
        static async Task Main(string[] args)
        {
            try
            {
                //Authentication
                var smsClient = await SmsClient.Authenticate("{{authorization_header}}");

                Console.WriteLine("Account authenticated");
                PrintSeparator();
                //Send an sms
                await SendingSms(smsClient);

                PrintSeparator();
                //View Balance
                await VerifyingBalance(smsClient);

                PrintSeparator();
                //View SMS Usage statistics
                await GettingStatistics(smsClient);

                PrintSeparator();
                //View purchase history
                await GetPurchaseHistory(smsClient);

                PrintSeparator();
            }
            catch (Exception ex)
            {
                Console.WriteLine($"Exception:{ex.Message}");
            }
        }