Skip to content

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

License

Notifications You must be signed in to change notification settings

ducc/gocardless-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages