Todoist.Net
6.1.0
.NET Standard 2.0
This package targets .NET Standard 2.0. The package is compatible with this framework or higher.
.NET Framework 4.5
This package targets .NET Framework 4.5. The package is compatible with this framework or higher.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Todoist.Net --version 6.1.0
NuGet\Install-Package Todoist.Net -Version 6.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Todoist.Net" Version="6.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Todoist.Net --version 6.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Todoist.Net, 6.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Todoist.Net as a Cake Addin #addin nuget:?package=Todoist.Net&version=6.1.0 // Install Todoist.Net as a Cake Tool #tool nuget:?package=Todoist.Net&version=6.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Todoist.Net
A Todoist Sync API client for .NET.
Installation
The library is available as a Nuget package.
Install-Package Todoist.Net
Get started
Creating Todoist client
With token (preferred way).
ITodoistClient client = new TodoistClient("API token");
With email and password.
ITodoistTokenlessClient tokenlessClient = new TodoistTokenlessClient();
ITodoistClient client = await tokenlessClient.LoginAsync("email", "password");
Quick add
Implementation of the Quick Add Task available in the official clients.
var quickAddItem = new QuickAddItem("Task title @Label1 #Project1 +ExampleUser");
var task = await client.Items.QuickAddAsync(quickAddItem);
Simple API calls
// Get all resources (labels, projects, tasks, notes etc.).
var resources = await client.GetResourcesAsync();
// Get only projects and labels.
var projectsAndLabels = await client.GetResourcesAsync(ResourceType.Projects, ResourceType.Labels);
// Get only projects.
var projectsOnly = await client.GetResourcesAsync(ResourceType.Projects);
// Alternatively you can use this API to get projects.
var projects = await client.Projects.GetAsync();
// Add a task with a note.
var taskId = await client.Items.AddAsync(new Item("New task"));
await client.Notes.AddToItemAsync(new Note("Task description"), taskId);
Transactions (Batching)
Batching: reading and writing of multiple resources can be done in a single HTTP request.
Add a new project, task and note in one request.
// Create a new transaction.
var transaction = client.CreateTransaction();
// These requests are queued and will be executed later.
var projectId = await transaction.Project.AddAsync(new Project("New project"));
var taskId = await transaction.Items.AddAsync(new Item("New task", projectId));
await transaction.Notes.AddToItemAsync(new Note("Task description"), taskId);
// Execute all the requests in the transaction in a single HTTP request.
await transaction.CommitAsync();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.5
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
-
.NETStandard 2.0
- Microsoft.CSharp (>= 4.7.0)
- Newtonsoft.Json (>= 13.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
8.0.0 | 1,875 | 7/10/2024 | |
7.0.0 | 241 | 6/3/2024 | |
6.1.0 | 698 | 2/5/2024 | |
6.0.0 | 581 | 11/1/2023 | |
5.1.0 | 592 | 8/31/2023 | |
5.0.0 | 713 | 4/2/2023 | |
4.0.0 | 973 | 12/27/2022 | |
3.0.1 | 1,229 | 10/10/2022 | |
3.0.0 | 858 | 10/10/2022 | |
2.2.2 | 1,420 | 12/21/2021 | |
2.2.1 | 874 | 12/20/2021 | |
2.2.0 | 3,991 | 11/25/2021 | |
2.1.1 | 1,993 | 8/31/2020 | |
2.1.0 | 1,908 | 11/25/2019 | |
2.0.0 | 1,548 | 4/22/2019 | |
1.5.0 | 1,417 | 3/27/2019 | |
1.4.2 | 1,653 | 11/20/2018 | |
1.4.1 | 1,881 | 6/10/2018 | |
1.4.0 | 1,851 | 3/7/2018 | |
1.3.3 | 1,642 | 11/4/2017 | |
1.3.2 | 1,803 | 7/31/2017 | |
1.3.1 | 1,681 | 7/26/2017 | |
1.3.0 | 1,770 | 6/18/2017 | |
1.2.1 | 1,681 | 5/9/2017 | |
1.2.0 | 1,685 | 4/28/2017 | |
1.1.5 | 1,653 | 4/27/2017 | |
1.1.4 | 1,694 | 4/6/2017 | |
1.1.2 | 1,693 | 1/31/2017 | |
1.1.1 | 1,674 | 1/29/2017 | |
1.1.0 | 1,769 | 1/19/2017 | |
1.0.0 | 1,707 | 12/7/2016 |