Skip to content

Florisheinen1/bunqers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bunqers

Convenience Client for using Bunq API in Rust.

Goals

  • Explicit API datatypes and endpoints
  • Reusable session data
  • Verifying response signatures

Non-goals

  • Rate limiting

Usage

let bunq_api_key = "your-api-key".into();
let api_base_url = "https://api.bunq.com/v1".into();

let client = ClientBuilder::new_without_key(api_base_url, "example-app-name".into())?
	.install_device()
	.await?
	.register_device(bunq_api_key, "my-test-device")
	.await?
	.create_session()
	.await?
	.build();

// Use the client object for fetching data from the API
let name = client.get_user().await.into_result()?.user_person.display_name;
println!("Hello, {name}!");

Endpoints covered

The following endpoints have datatype definitions and corresponding method:

Endpoint Implemented
/installation
/device-server
/session-server
/user
/user/{}/monetary-account-bank
/user/{}/monetary-account/{}/bunqme-tab

More will be added on demand

License

Licensed under MIT

Contribution

Contributions are welcome. Feel free to create an Issue or open a PR!

About

Client for Bunq API made in Rust

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages