Crates.io | gocardless-unofficial |
lib.rs | gocardless-unofficial |
version | 0.1.3 |
source | src |
created_at | 2024-04-27 14:11:14.948053 |
updated_at | 2024-06-09 21:41:57.894234 |
description | An unofficial rust library to interact with the GoCardless Bank Account Data API |
homepage | |
repository | https://github.com/ducc/gocardless-rs |
max_upload_size | |
id | 1222642 |
size | 31,959 |
An unofficial rust library to interact with the GoCardless Bank Account Data API.
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.
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
!