Skip to content
/ plaid Public

Unofficial Rust client library for the Plaid API

License

Notifications You must be signed in to change notification settings

telcoin/plaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plaid

CI

An unofficial Rust client library for the Plaid API.

Example

  1. Add the following to your Cargo.toml:

    [dependencies]
    plaid = { git = "https://github.com/telcoin/plaid.git", tag = "v0.9.1" }
    tokio = { version = "1", features = ["full"] }
  2. Obtain your API credentials from: https://dashboard.plaid.com/team/keys

  3. Get started with this example main.rs:

     #[tokio::main]
     async fn main() -> Result<(), Box<dyn std::error::Error>> {
         // or use `plaid::Client::from_env()?`
         let client = plaid::Client::new(
             "your_client_id",
             "your_client_secret",
             plaid::Environment::Sandbox,
         );
    
         // TODO: use the Link flow instead; https://plaid.com/docs/link/#link-flow
         let public_token = client.sandbox_create_public_token().await?.public_token;
    
         let access_token = client
             .exchange_public_token(&public_token)
             .await?
             .access_token;
    
         let _accounts = client.accounts(&access_token).await?.accounts;
    
         Ok(())
     }

About

Unofficial Rust client library for the Plaid API

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages