```rust use plaid::PlaidClient;
async fn main() { let client = PlaidClient::fromenv(); // Add this middleware to record requests, e.g. for testing. // Do not use the middleware in production! // .withmiddleware(httpclient::middleware::RecorderMiddleware::new()); let accesstoken ="access-sandbox-b4957595-eae2-4130-9da7-114d14726a62".tostring(); let itemget = client.itemget(accesstoken) .send() .await .unwrap(); println!("{:#?}", itemget); } ```
This example loads the client from the environment variables, specifically:
PLAID_CLIENT_ID
PLAID_SECRET
PLAID_VERSION
PLAID_ENV
: one of sandbox
, development
, or production
Add this to your Cargo.toml:
toml
[dependencies]
plaid = "2"
This library has undergone several iterations due to being a community effort rather than officially supported by Plaid.
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in the project license.
Library created with Libninja.