Skip to content

tingfeng-key/tencent_sms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明

腾讯云短信发送接口实现

示例

//发送
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"))
    );

About

腾讯云短信发送接口实现

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages