wx-sdk 0.0.2

A Wechat SDK written in Rust
Documentation

wx-sdk

CI Crates.io docs

wx-sdk is a WeChat SDK written in Rust.

QuickStart

First, please refer to this page to provide these values: token, EncodingAESKey,EncodingMode.

use wx_sdk::wechat::{ServerConfig, EncodingMode};

let config = ServerConfig::new(token, Some("aes_key"), EncodingMode::Plain);
let sdk = WxSdk::new_with_default_token_client("app_id", "app_secret", config);

Then, you can use the sdk functions, like get current menu info:

let mpsdk = WxSdk::mp(&sdk);
let menu = mpsdk.menu().get_current_selfmenu_info().await;

Features

Contributing

Issue reports and Pull Requests are always welcome!

License

wx-sdk is available under the MIT License