#bank-account #api #data #api-client #interact #go-cardless #gocardless

gocardless-unofficial

An unofficial rust library to interact with the GoCardless Bank Account Data API

4 releases

0.1.3 Jun 9, 2024
0.1.2 Apr 27, 2024
0.1.1 Apr 27, 2024
0.1.0 Apr 27, 2024

#1302 in Web programming

Download history 4/week @ 2024-09-18 8/week @ 2024-09-25

250 downloads per month

MIT license

28KB
349 lines

Unofficial GoCardless Rust SDK

Crates.io Version docs.rs

An unofficial rust library to interact with the GoCardless Bank Account Data API.

Usage

Add the following to Cargo.toml

[dependencies]
gocardless-unofficial = "0.1"
use gocardless_unofficial::Client;

#[tokio::main]
pub async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let secret_id = std::env::var("GOCARDLESS_SECRET_ID").unwrap();
    let secret_key = std::env::var("GOCARDLESS_SECRET_KEY").unwrap();

    let client = Client::new(secret_id, secret_key).await?;

    // use client to interact with GoCardless!

    Ok(())
}

See here for more examples.

Authorization

Head to the User Secrets page, generate a new user secret and copy both the secret ID and secret key.

Next, pass the secret ID and secret key to the Client::new constructor as String!

Dependencies

~4–15MB
~192K SLoC