#openapi #plaid-api

plaid

Plaid client, generated from the OpenAPI spec

7 releases (stable)

Uses new Rust 2021

new 2.0.1 Aug 4, 2022
1.0.2 Apr 18, 2021
1.0.1 Mar 12, 2021
0.3.0 Mar 12, 2021
0.1.0 Jun 10, 2016

#186 in Web programming

Download history 3/week @ 2022-04-17 19/week @ 2022-04-24 21/week @ 2022-05-01 30/week @ 2022-05-08 89/week @ 2022-05-15 25/week @ 2022-05-22 40/week @ 2022-05-29 25/week @ 2022-06-05 1/week @ 2022-06-12 3/week @ 2022-06-19 9/week @ 2022-06-26 12/week @ 2022-07-03 8/week @ 2022-07-10 13/week @ 2022-07-17 11/week @ 2022-07-24 41/week @ 2022-07-31

73 downloads per month

MIT license

1MB
18K SLoC

GitHub Contributors Stars Build Status Downloads Crates.io

Usage

use plaid::PlaidClient;

#[tokio::main]
async fn main() {
    let client = PlaidClient::from_env();
    // Add this middleware to record requests, e.g. for testing.
    // Do not use the middleware in production!
    // .with_middleware(httpclient::middleware::RecorderMiddleware::new());
    let access_token ="access-sandbox-b4957595-eae2-4130-9da7-114d14726a62".to_string();
    let item_get = client.item_get(access_token)
        .send()
        .await
        .unwrap();
    println!("{:#?}", item_get);
}

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

Installation

Add this to your Cargo.toml:

[dependencies]
plaid = "2"

Documentation

Previous Versions

This library has undergone several iterations due to being a community effort rather than officially supported by Plaid.

Contributing

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.

Dependencies

~14–22MB
~520K SLoC