本文整理汇总了C#中ApiClient.SendSMSAsync方法的典型用法代码示例。如果您正苦于以下问题:C# ApiClient.SendSMSAsync方法的具体用法?C# ApiClient.SendSMSAsync怎么用?C# ApiClient.SendSMSAsync使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ApiClient
的用法示例。
在下文中一共展示了ApiClient.SendSMSAsync方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SendFlashSMS
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: SendWithConfirmationUrl
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: SendSMS
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: SendTextRequiresSender
public void SendTextRequiresSender()
{
var client = new ApiClient(TestUser, TestPassword);
client.SendSMSAsync(null, null, null, false);
}