Expand description
WakaTime HTTP client library.
This crate provides an async HTTP client for the
WakaTime API.
It is designed to be usable independently of the waka CLI.
§Example
use waka_api::WakaClient;
async fn example() -> Result<(), waka_api::ApiError> {
let client = WakaClient::new("waka_xxxxxx");
let me = client.me().await?;
println!("Hello {}", me.username);
Ok(())
}Re-exports§
pub use client::WakaClient;pub use error::ApiError;pub use params::StatsRange;pub use params::SummaryParams;pub use types::BestDay;pub use types::Goal;pub use types::GoalChartEntry;pub use types::GoalChartRange;pub use types::GoalsResponse;pub use types::GrandTotal;pub use types::LeaderboardEntry;pub use types::LeaderboardRange;pub use types::LeaderboardResponse;pub use types::LeaderboardUser;pub use types::MachineEntry;pub use types::Project;pub use types::ProjectsResponse;pub use types::RunningTotal;pub use types::Stats;pub use types::StatsResponse;pub use types::SummaryData;pub use types::SummaryEntry;pub use types::SummaryRange;pub use types::SummaryResponse;pub use types::User;pub use types::UserResponse;