From 4d272a1d9916668b0eb4913f379f9bf79e0357a2 Mon Sep 17 00:00:00 2001 From: Richard Guy Date: Mon, 25 Mar 2024 20:51:31 -0400 Subject: [PATCH] Updated for v2 of the Obsidian API --- main.ts | 6 +++--- oura-api.ts | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/main.ts b/main.ts index cfde61c..aab2b47 100644 --- a/main.ts +++ b/main.ts @@ -74,9 +74,9 @@ const fetchOuraStats = async (token: string, day: string): Promise { if (this.token) { const data = await request({ - url: `${OURA_API_URL}/userinfo`, headers: { + url: `${OURA_API_URL}/personal_info`, headers: { 'Authorization': `Bearer ${this.token}` } })