tencent_sms

Crates.iotencent_sms
lib.rstencent_sms
version0.1.2
sourcesrc
created_at2021-01-22 11:44:17.042802
updated_at2021-06-30 12:22:03.84931
descriptiontencent sms
homepagehttps://github.com/tingfeng-key/tencent_sms
repositoryhttps://github.com/tingfeng-key/tencent_sms
max_upload_size
id345285
size22,600
听风 (tingfeng-key)

documentation

README

说明

腾讯云短信发送接口实现

示例

//发送
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"))
    );
Commit count: 13

cargo fmt