#sms #client #api #api-client #message #com #intistelecom

无std intistelecom-rs

使用intistele.com,您可以通过API从自己的软件中访问和组织短信邮件列表

1个不稳定版本

0.1.2 2023年8月22日
0.1.1 2023年8月22日
0.1.0 2023年8月18日

#295 in 无标准库

MIT/Apache

23KB
386

Intistele.com

使用intistele.com,您可以通过API从自己的软件中访问和组织短信邮件列表
Intistele.com文档

快速入门

use intistelecom_rs::{
    client::Client,
    message::send,
    model::message::MessageBody,
};

fn main() {
    let client: Client = Client::new("YOUR_USERNAME", "YOUR_API_KEY");
    let res = send(
        &client,
        &mut MessageBody {
            destination: String::from("PHONE_NUMBER"),
            originator: String::from("ORIGINATOR_NAME"),
            text: String::from("SOME TEXT"),
            time_to_send: String::from("2023-08-01 11:20:00"),
            validity_period: 0,
            callback_url: String::from(""),
            use_local_time: false,
        },
    );
    println!("{:#?}", res);
}

依赖关系

~7–20MB
~304K SLoC