1 unstable release

0.1.0 Jul 9, 2022

#39 in #sender

Custom license

25KB
671 lines

uprs

A Rust library for the Up Bank developer API. WIP.


lib.rs:

Up Bank API wrapper

This crate is an API wrapper for the Up Bank API.

Example Usage

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)
    }
}

Dependencies

~9–21MB
~301K SLoC