Convenience Client for using Bunq API in Rust.
- Explicit API datatypes and endpoints
- Reusable session data
- Verifying response signatures
- Rate limiting
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}!");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
Licensed under MIT
Contributions are welcome. Feel free to create an Issue or open a PR!