12 releases

0.4.3 Nov 17, 2022
0.4.2 Nov 9, 2022
0.3.0 Jun 3, 2019
0.2.4 Jun 3, 2019
0.1.1 Apr 25, 2018

#5 in #alibaba

Download history 9/week @ 2024-07-01 8/week @ 2024-07-22 64/week @ 2024-09-23

64 downloads per month

MIT license

14KB
257 lines

Dayu

A Rust Implement for Alibaba's Dayu SMS SDK.

Since Version 0.3, we just support async edition, if you need sync edition, keep use 0.2 version.

  • Support SMS Send
  • Support SMS Query

lib.rs:

This library supports Alibaba's Dayu SMS SDK version of '2017-05-25'.

Basic usage

use dayu::Dayu;
use serde_json::json;

let dayu = Dayu::new()
    .set_access_key("access_key")
    .set_access_secret("access_secret")
    .set_sign_name("阿里云测试短信");
dayu.sms_send(&["138XXXXXXXX"], "SMS_123456", Some(&json!({"customer": "Rust"}))).await.unwrap();

Dependencies

~7–20MB
~301K SLoC