Todo API returns blank/no results

Jump to solution
Pete42
Community Member

Hello,

I am working to make a sync script to pull Canvas Todos out from the API and return them.

If I log into Canvas and view my "To Do" section, there are several assignments, announcements, quizzes, etc listed. 

If I call the assignments API (/api/v1/courses/:course_id/assignments/), they are all returned.

However, calling the "todo" API (/api/v1/courses/:course_id/todo/) returns NO results (just a blank JSON [])

Is there a required parameter or something I have to send to request from the Todo API?

Does the API not return the same thing as what is displayed in the WebUI?

TIA

0 Likes
1 Solution
James
Community Champion

@Pete42 

The todo and todo_item_count endpoints both work for me.

One scenario consistent with what you're seeing is that the API token you're using is for some user other than the one you're logged into Canvas as. 

Try "GET /users/self" to verify that you are using the correct token.

View solution in original post

0 Likes