Prerequisites
To complete this guide, you will need the following:- ZBD Project with a Live API key
- Rust and cargo installed
1. Create a Rust project
2. Install dependencies
Add both thezebedee-rust
and tokio
crates to your project:
3. Update your Cargo.toml
Update yourCargo.toml
file to use full features in tokio.
4. Create a Charge
Open your project’smain.rs
file and add the following code:
Make sure to create an environment variable called ZBD_API_KEY in your Rust project. This is the API key you get from your ZBD Project.