From 8b836618c7c0b1615830d41effdc4dcc56c25a17 Mon Sep 17 00:00:00 2001 From: Abhishek Naidu Date: Wed, 21 Jun 2023 00:16:32 +0530 Subject: [PATCH] chore: migrate from v8 to v9 --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7b66c00..1ecbb0c 100644 --- a/index.js +++ b/index.js @@ -8,8 +8,10 @@ const TODOIST_API_KEY = core.getInput("TODOIST_API_KEY"); const PREMIUM = core.getInput("PREMIUM"); async function main() { + // v8 => v9 const stats = await axios( - `https://api.todoist.com/sync/v8.3/completed/get_stats?token=${TODOIST_API_KEY}` + "https://api.todoist.com/sync/v9/completed/get_stats", + { headers: { Authorization: `Bearer ${TODOIST_API_KEY}` } } ); await updateReadme(stats.data); }