Example #1
0
        public async Task SendMessageTest()
        {
            var service = new SmsNotificationService
            {
                Authentication = _textFixture.Authentication,
                Username       = _textFixture.MainApiUsername,
                Password       = _textFixture.MainApiPassword,
                SenderId       = _textFixture.MainApiSenderId
            };

            await service.SendMessage("ENTER-NUMBER-HERE", "ENTER-MESSAGE-CONTENT-HERE");
        }
Example #2
0
        private static async Task RunExample()
        {
            ISmsNotificationService service = new SmsNotificationService
            {
                Authentication = new KeyAuthentication(Environment.GetEnvironmentVariable("APIKEY"))
            };

            var result = await service.SendMessage("082298968201", "Halo test BigBoxNet.");

            Console.WriteLine("Code: {0}", result.Code);
            Console.WriteLine("Message ID: {0}", result.MessageId);
            Console.WriteLine("Message: {0}", result.Message);
            Console.WriteLine("Status: {0}", result.Status);
        }