-
I am trying to get my head around how this library interacts with the Todoist API description and would appreciate any guidance to solve this really simple task. Here is what I was trying: It seems like the last API call expects a 'ComplexId' as parameter where I tried to tell the API call that I want the 'Items' out of my 'Inbox'. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
var items = await client.Items.GetAsync();
var currentUser = await client.Users.GetCurrentAsync();
var inboxItems = items.Where(i => i.ProjectId == currentUser.InboxProjectId); |
Beta Was this translation helpful? Give feedback.
Items.GetAsync
accepts an item ID, not a project ID. Here's how you can get the list of items from the Inbox.