Crates.io | rplaid |
lib.rs | rplaid |
version | 0.4.0 |
source | src |
created_at | 2021-09-07 06:26:20.914836 |
updated_at | 2022-08-31 18:29:02.083426 |
description | An async client library for Plaid APIs. |
homepage | https://github.com/allancalix/rplaid |
repository | https://github.com/allancalix/rplaid |
max_upload_size | |
id | 447868 |
size | 235,916 |
rplaid is an async client for the Plaid API. With minimal features, the client is meant to be extensible and lightweight. Additional features can be enabled to improve ergonomics of the API at the cost of additional dependencies.
The goal is to provide expressive bindings that provide sensible defaults where possible for ease of use.
See official API docs for more information about endpoints or specific products.
These are not official Plaid bindings.
use rplaid::client::{Builder, Credentials};
use rplaid::model::*;
#[tokio::main]
async fn main() {
let client = Builder::new()
.with_credentials(Credentials {
client_id: std::env::var("PLAID_CLIENT_ID").unwrap(),
secret: std::env::var("PLAID_SECRET").unwrap(),
})
.build();
let institutions = client
.get_institutions(&InstitutionsGetRequest {
count: 10,
offset: 0,
country_codes: &["US"],
options: None,
})
.await
.unwrap();
println!("{:?}", institutions);
}
Item - A Item represents a connection to a single financial instution.
Typically links are associated with a pair of credentials and an
access_token
. Items are associated to one or more accounts.
Link - Link is a client-side component that Plaid provides to link to accounts. See https://plaid.com/docs/link/#introduction-to-link for more information.
Account - An account is a financial account that is linked to an Item. An item, or financial institution, may have multiple accounts for a single user (e.g. a checking account and a credit account).
Product - Entities with services offered by Plaid, see https://plaid.com/docs/api/products/ for more information.
Some endpoints are production specific or beta products and are not yet supported by the client.
For a breakdown of endpoint support visit: https://docs.google.com/spreadsheets/d/1xqUXdfllo37Rx5MVrQODbVqNQvuktiCVL5Uh8y9mYYw