This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let task_get = new Request(`https://api.todoist.com/rest/v2/tasks/${task_id}`); | |
task_get.method = "get"; | |
task_get.headers = { | |
"Authorization": `Bearer ${bearer_token}`, | |
"Content-Type": "application/json" | |
}; | |
let res = await task_get.loadJSON(); | |
let due = res["due"]["date"]; | |
let due_date = new Date(due); |