Skip to content

Instantly share code, notes, and snippets.

@zupzup
Created December 2, 2020 12:25
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/88cea85e61bb73311d242000fd2c73e5 to your computer and use it in GitHub Desktop.
Save zupzup/88cea85e61bb73311d242000fd2c73e5 to your computer and use it in GitHub Desktop.
Timeular Webhooks Handlers
async fn started_tracking_handler(body: TrackingStartedPayload) -> WebResult<impl Reply> {
println!("tracking was started with data: {:?}", body);
Ok("OK")
}
async fn stopped_tracking_handler(body: TrackingStoppedPayload) -> WebResult<impl Reply> {
println!("time entry was created with data: {:?}", body);
Ok("OK")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment