Building a time entry application

Using the time API

This sample demonstrates using the time API to record time against a work item in Sharedo. It shows how to resolve the data capture required to successfully post time, display this to the user to complete, and then use the time API to then submit time.

Topics covered;

  • ASP.NET Core web app authenticating via sharedo and auth code flow
  • Using access and refresh tokens to interface to sharedo APIs
  • Back end for front end pattern - core app has it's own API that calls the sharedo APIs using the user's current access token (and refreshes the access token when it expires)
  • Leveraging the work item find by query API
  • Various aspects of the time API
    • Getting available time categories to book to
    • Getting the defined data capture for a time category + work item combination (the time capture classification)
    • Sending a new time entry to sharedo

Source code and full technical article:
https://github.com/sharedo-tech/sharedo_api_samples/tree/main/time/entry