This is a .NET 8.0 / .NET 9.0 library for the Toggl API.
We now only provide Toggl API v9 support. Many endpoints are currently missing. Your pull requests are welcome!
To avoid the conflict with System.Threading.Tasks.Task, we have renamed the Task class to ProjectTask. This will require you to update your code to use ProjectTask instead of Task.
This project is developed using Refit and System.Text.Json. It is a .NET 8.0 project.
Add interfaces for new endpoints in the Interfaces
folder.
Add models in the Models
folder.
Add unit tests in the Toggl.Api.Tests
project.
Refer to the Toggl API documentation for more information on the endpoints and models here: https://engineering.toggl.com/docs/
The v9 version of the library is a complete rewrite. The main differences are:
- The library is now .NET 8.0.
- The library uses Refit for the API calls
- The library uses System.Text.Json for JSON serialization
- The library uses the new Toggl API v9 endpoints
- The library uses the new Toggl API v9 models and these are in the
Models
namespace (previouslyDataObjects
) - The library uses the new Toggl API v9 interfaces and these are in the
Interfaces
namespace