Crate waka

source ·
Expand description

WakaTime API client

A client to fetch your coding statistics from WakaTime given your API key.

This is a work in progress and the API may change over time.

use waka::WakaTimeClientBuilder;

let api_key = std::env::var("WAKATIME_API_KEY")?;
let client = WakaTimeClientBuilder::with_api_key(api_key)
    .with_user("current")
    .build()?;

let summary = client
    .summaries(
        "2023-01-01",
        "2023-01-08",
        None,
        None,
        None,
        None,
        None,
        None,
    ).await?;

Modules

Structs