pomdtr / todoist-to-workflowy

Bookmarklet used to convert Todoist tasks to Workflowy nodes
1 stars 0 forks source link

TypeError: Failed to fetch #1

Open yoghurtdewdew opened 1 year ago

yoghurtdewdew commented 1 year ago

Hello, your script looks great! May I ask if it is still working properly? I followed the steps and tried to display this:

An error occurred when pulling node from todoist: TypeError: Failed to fetch

pomdtr commented 1 year ago

It has been a long time since I have written this script, so the API have probably changed. I'm no longer a todoist user (workflowy is good enough for my needs).

Feel free to create a PR if you fix the issue!

PS: If I had to rewrite it today, I would probably host it on https://val.town

yoghurtdewdew commented 1 year ago

Hi! Thank you for your reply! I feel that adding content to Todoist on mobile devices and from browsers would be very convenient, so if I could sync Todoist's content to workflow, I think it would be great.

I don't understand programming and haven't used val town before.

Look forward to good news from you or other developers!

Meanwhile, thank you for your prompt! I searched for the API in your script and saw the corresponding link https://api.todoist.com/rest/v1/tasks?project_id=${TodoistInboxId} https://api.todoist.com/rest/v1/tasks/${msg. id}/close

And I found the Todoist's developer document through a search https://developer.todoist.com/sync/v9/#sync

Then speculate that the latest API URL may be https://api.todoist.com/sync/v9/sync

Since I don't understand programming, it would be great if you could make modifications based on the above information to make this script usable again.

Looking forward to your reply!