Skip to content

Instantly share code, notes, and snippets.

@zupzup
Created October 29, 2020 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zupzup/fb738916b00be63079d95ec50c706c75 to your computer and use it in GitHub Desktop.
Save zupzup/fb738916b00be63079d95ec50c706c75 to your computer and use it in GitHub Desktop.
Timeular Public API activities tracking
if !activities.is_empty() {
println!("starting to track...");
let tracking = start_tracking(&activities.get(0).expect("exists").id, &token).await?;
println!("started tracking: {:?}", tracking);
let time_entry = stop_tracking(&token).await?;
println!("created time entry: {:?}", time_entry);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment