| Crates.io | easee-rs |
| lib.rs | easee-rs |
| version | 0.1.2 |
| created_at | 2025-02-10 02:07:34.601876+00 |
| updated_at | 2025-02-10 11:20:48.863243+00 |
| description | A client for the Easee API |
| homepage | |
| repository | https://github.com/flowionab/easee |
| max_upload_size | |
| id | 1549503 |
| size | 55,329 |
This is a Rust client implementation for the Easee API. It provides an interface for interacting with Easee's EV charging platform, enabling users to authenticate, retrieve charger status, and control charging sessions.
Add the following dependency to your Cargo.toml:
[dependencies]
easee-rs = "0.1"
(Note: Replace with the actual crate name if published on crates.io, or use a Git dependency if needed.)
use easee_rs::Client;
#[tokio::main]
async fn main() {
let client = Client::new_with_access_token("your-api-key");
match client.get_chargers().await {
Ok(chargers) => println!("{:?}", chargers),
Err(e) => eprintln!("Error: {}", e),
}
}
The client requires either an API key, or username and password for authentication. The API key can be obtained from the Easee developer portal, while the username and password are the same as those used to log in to the Easee app.
Contributions are welcome! Feel free to submit issues or pull requests.