Add /me/time_entries

This commit is contained in:
2024-07-16 08:16:01 +01:00
parent 9c20dc09ec
commit c1b8636407
4 changed files with 45 additions and 2 deletions
+6 -1
View File
@@ -1,3 +1,5 @@
use std::ops::Sub;
use chrono::{TimeDelta, Utc};
use toggl::TogglApi;
mod toggl;
@@ -10,5 +12,8 @@ async fn main() {
sensitive::WORKSPACE_ID,
);
dbg!(api.get_tags().await);
dbg!(api.get_time_user_entries_between(
Utc::now().sub(TimeDelta::days(2)),
Utc::now(),
).await);
}