File tree 2 files changed +12
-2
lines changed
2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -462,7 +462,12 @@ const PREMIUM = core.getInput("PREMIUM");
462
462
463
463
async function main ( ) {
464
464
const stats = await axios (
465
- `https://api.todoist.com/sync/v9/completed/get_stats?token=${ TODOIST_API_KEY } `
465
+ "https://api.todoist.com/sync/v9/completed/get_stats" ,
466
+ {
467
+ headers : {
468
+ "Authorization" : `Bearer ${ TODOIST_API_KEY } ` ,
469
+ }
470
+ }
466
471
) ;
467
472
await updateReadme ( stats . data ) ;
468
473
}
Original file line number Diff line number Diff line change @@ -9,7 +9,12 @@ const PREMIUM = core.getInput("PREMIUM");
9
9
10
10
async function main ( ) {
11
11
const stats = await axios (
12
- `https://api.todoist.com/sync/v9/completed/get_stats?token=${ TODOIST_API_KEY } `
12
+ "https://api.todoist.com/sync/v9/completed/get_stats" ,
13
+ {
14
+ headers : {
15
+ "Authorization" : `Bearer ${ TODOIST_API_KEY } ` ,
16
+ }
17
+ }
13
18
) ;
14
19
await updateReadme ( stats . data ) ;
15
20
}
You can’t perform that action at this time.
0 commit comments