3 releases
0.1.2 | Jun 30, 2021 |
---|---|
0.1.1 | Jan 22, 2021 |
0.1.0 | Jan 22, 2021 |
#11 in #tencent
11KB
242 lines
说明
腾讯云短信发送接口实现
示例
//发送
let response = TencentSms::new(
"secret_id",
"secret_key",
"sdk_app_id",
"template_id",
"sign",
vec![
String::from("+8612345678912"),
String::from("+8612345678913"),
],
vec![String::from("1234"), String::from("5678")],
)
.send()
.await;
//检查是否发送成功
println!(
"{:#?}",
response
.unwrap()
.check_is_success(String::from("+8612345678912"))
);
Dependencies
~30MB
~612K SLoC