public async Task <dynamic> SendMessage(string PhoneNumbers, string SignName, string TemplateCode, string TemplateParam) { var res = await _tencentSmsClient.SendSms(new SendSmsRequest { //PhoneNumberSet = PhoneNumbers, //Sign = SignName, //TemplateID = TemplateCode, //TemplateParamSet = TemplateParam }); return(res); }
public async Task SendSms() { var result = await _client.SendSms(new SendSmsRequest() { PhoneNumberSet = new string [] { "18650482503" }, TemplateID = "SMS_192821653", //SignName = "┬■═Т", //TemplateParam = "{'code':'2345'}" }); //Assert.Equal("OK", result.Code); }