0bd51552104968403054b02ad31d571aac987bce
Focusmaters
Rust client library for the Focusmate API.
Installation
Add to your Cargo.toml:
[dependencies]
focusmaters = "0.1.0"
Usage
use focusmaters::FocusmateClient;
use time::OffsetDateTime;
#[tokio::main]
async fn main() {
let client = FocusmateClient::new("your-api-key".to_string());
// Get profile
let me = client.get_me().await?;
// Get sessions for last month
let start = OffsetDateTime::now_utc() - time::Duration::days(30);
let end = OffsetDateTime::now_utc();
let sessions = client.get_sessions(&start, &end).await?;
}
Features
- Profile retrieval
- User profile lookup
- Session history with auto-pagination for ranges > 1 year
- Session partner lookup
License
MIT
Description
Languages
Rust
100%