Closed mcolacino57 closed 3 years ago
Seems to be working now; not sure what happened
Good news!
Not sure exactly what happened..it seemed broken this morning.
Michael Colacino 917-664-4787 @.***
On Mar 14, 2021, at 2:09 PM, roamhacker @.***> wrote:
Good news!
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/roamhacker/roam42/issues/358#issuecomment-798952298, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABXD6665MDUPKLLX5LW3TALTDT3WNANCNFSM4ZFBK6MA.
Small javascript program to access ToDoist API was working yesterday but failed today. Smartblock is triggered and does a cursor command but JScript below non operational.
var myToken = '';
var url = "https://api.todoist.com/rest/v1/tasks?filter=Today";
var bearer = 'Bearer ' + myToken;
var myTasks = $.ajax({url:url, type:"GET", async:false, headers: { Authorization: bearer }, }).responseText;
for(task of JSON.parse(myTasks)) await roam42.smartBlocks.activeWorkflow.outputAdditionalBlock( "{{[[TODO]]}} [" + task.content + "](" + task.url + ")" );
return '';