1个不稳定版本
0.1.0 | 2022年7月9日 |
---|
#39 在 #sender
25KB
671 代码行
uprs
Up Bank开发者API的Rust库。工作进展中。
lib.rs
:
Up Bank API包装器
该包是对Up Bank API的API包装器。
示例用法
use uprs::api_endpoints::ListAccounts;
use uprs::models::Account;
use uprs::request_sender::ApiRequest;
#[tokio::main]
async fn main() {
let api_key: String = "$your_access_token".parse().unwrap();
let list_accounts: Vec<Account> = ListAccounts::new(&api_key).send().await.unwrap();
for account in list_accounts {
println!("{}: ${}", account.attributes.display_name, account.attributes.balance.value)
}
}
依赖关系
~7–18MB
~278K SLoC