Read the statement by Michael Teeuw here.
Todoist accesstoken
-
-
@ninjabreadman thx. My steps:
- went to https://todoist.com/oauth/authorize?client_id=0123456789abcdef&scope=data:read,data:delete&state=secretstring
where I used my client_id and a “state” used "client_secret - got
https://example.com/?state=client_secert&code=string_of_characters - on MM from commandlind I run
curl "https://todoist.com/oauth/access_token" \ -d "client_id=my_client_id" \ -d "client_secret=my_client_secret" \ -d "code=string_from_previous_step" \ -d "redirect_uri=https://example.com"
- got answer
“access_token”:“another_string”,“token_type”:“Bearer”
so, I guess, that “another_string” is the right think for the module = access_token, right?
{ module: 'MMM-Todoist', position: 'top_center', // This can be any of the regions. Best results in left or right regions. //header: 'Todoist', // This is optional config: { // See 'Configuration options' for more information. accessToken: 'axxxxxxxxxxb', maximumEntries: 60, updateInterval: 10*60*1000, // Update every 10 minutes //projects: [ 166564794 ], fade: false } },
should be OK, but nothing :-(. Checked in browser:
div id="module_10_MMM-Todoist" class="module MMM-Todoist MMM-Todoist">div class="module-content">table class="normal small light">/table>/div>/div>
(removed < signs)
in Console no Warnings, no Erros…
any idea?
- went to https://todoist.com/oauth/authorize?client_id=0123456789abcdef&scope=data:read,data:delete&state=secretstring
-
i’m soooooooooo stupid sorry. I thougt, without define any ProjectID I’ll get ToDo of all Projects in my account. Nope. After add of at least one ID, it works…
sorry for annoying …
Zdeněk -
@zdenek No problem, it happens to all of us. Glad to hear it’s working!
-
Hello all,
I also get so many trouble to make it work, but thanks to your help it is now ok ! :grinning_face:
So no need to create that incredibly complicated “OAuth string”, the use of the “Test token” works perfectly fine :
But… It is mandatory to define “projects” value in the config.js file.
As the default value is [] I also consider it as optional…:flushed_face:With this value defined, everything is OK !