wx-sdk

QuickStart
First, please refer to this page to provide these values: token
, EncodingAESKey
,EncodingMode
.
```rust
use wx_sdk::wechat::{ServerConfig, EncodingMode};
let config = ServerConfig::new(token, Some("aeskey"), EncodingMode::Plain);
let sdk = WxSdk::newwithdefaulttokenclient("appid", "appsecret", config);
Then, you can use the sdk functions, like get current menu info:
rust
let mpsdk = WxSdk::mp(&sdk);
let menu = mpsdk.menu().getcurrentselfmenuinfo().await;
```
Features
- [x] get access token
- [x] clear quota
- [ ] custom menu
- [x] [create custom defined menu](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/CreatingCustom-DefinedMenu.html)
- [x] [get current menu info](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/QueryingCustomMenus.html)
- [x] [delete custom defined menu](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/DeletingCustom-DefinedMenu.html)
- [x] [add conditional menu ](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/Personalizedmenuinterface.html#0)
- [x] [delete conditional menu](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/Personalizedmenuinterface.html#1)
- [ ] [try match menu](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/Personalizedmenuinterface.html#2)
- [ ] [get all menu info](https://developers.weixin.qq.com/doc/offiaccount/CustomMenus/GettingCustomMenuConfigurations.html)
- [ ] parse received event
- [ ] customer service
- [x] assert managerment
- [x] [add temporary material](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/Newtemporarymaterials.html)
- [x] [get temporary materials](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/Gettemporarymaterials.html)
- [x] [add permanent asset](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/AddingPermanentAssets.html)
- [x] [get permanent asset](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/GettingPermanentAssets.html)
- [x] [delete permanent asset](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/DeletingPermanentAssets.html)
- [x] [edit permanent rich media asset](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/EditingPermanentRichMediaAssets.html)
- [x] [get the total count of all materials](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/Getthetotalofallmaterials.html)
- [x] [get materials list](https://developers.weixin.qq.com/doc/offiaccount/AssetManagement/Getmaterials_list.html)
- [ ] [comments management](https://developers.weixin.qq.com/doc/offiaccount/Commentsmanagement/ImageCommentsManagementInterface.html)
- [x] [user management]
- [x] [user tag management](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/UserTagManagement.html)
- [x] add user tag
- [x] get user tags
- [x] edit user tag
- [x] delete user tag
- [x] get user by tag
- [x] batch tagging users
- [x] [update user remark](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/Configuringusernotes.html)
- [x] [get user info](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/GetusersbasicinformationUnionID.html#UinonId)
- [x] [batch get user info](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/GetusersbasicinformationUnionID.html#UinonId)
- [x] [get subscribe openid list](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/GettingaUserList.html)
- [x] [get blocklist](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/Manageblacklist.html)
- [x] [batch add blocklist](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/Manageblacklist.html)
- [x] [batch undo blocklist](https://developers.weixin.qq.com/doc/offiaccount/UserManagement/Manageblacklist.html)
Contributing
Issue reports and Pull Requests are always welcome!
License
wx-sdk is available under the MIT License