From a8811ab0b4deccc6f4f89457d082360a432f7e44 Mon Sep 17 00:00:00 2001
From: Bastien DUMONT <bdumont@grandlyon.com>
Date: Fri, 25 Nov 2022 10:31:33 +0100
Subject: [PATCH] fix: auth/token

---
 main.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/main.go b/main.go
index c50a7e5..b521871 100644
--- a/main.go
+++ b/main.go
@@ -446,9 +446,9 @@ func main() {
 		// }).Debug("WL - EnedisInfo - Token - Result")
 
 		// DEV API
-		// tokenUrl := "https://gw.hml.api.enedis.fr/v1/oauth2/token"
+		// tokenUrl := "https://gw.hml.api.enedis.fr/v2/oauth2/token"
 		// PROD API
-		tokenUrl := "https://gw.prd.api.enedis.fr/v1/oauth2/token"
+		tokenUrl := "https://gw.prd.api.enedis.fr/v2/oauth2/token"
 
 		data := url.Values{}
 		data.Set("client_id", clientId)
-- 
GitLab