示例#1
0
        public async void SendFlashSMS()
        {
            var client = new ApiClient(TestUser, TestPassword);
            var id = await client.SendSMSAsync("+46702386266", "+46702386266", "The answer is 42", true);
            Assert.IsFalse(string.IsNullOrEmpty(id));

        }
示例#2
0
        public async void SendWithConfirmationUrl()
        {
            var client = new ApiClient(TestUser, TestPassword);

            var id = await client.SendSMSAsync("+46702386266", "+46702386266", "I know you have read this!", false, new Uri("http://sms.tomv.io/confirm"));
            Assert.IsFalse(string.IsNullOrEmpty(id));

        }
示例#3
0
 public async void SendSMS()
 {
     var client = new ApiClient(TestUser, TestPassword);
     var id = await client.SendSMSAsync("+46702386266", "+46702386266", "I know where you live!");
     Assert.IsFalse(string.IsNullOrEmpty(id));
 }
示例#4
0
 public void SendTextRequiresSender()
 {
     var client = new ApiClient(TestUser, TestPassword);
     client.SendSMSAsync(null, null, null, false);
 }