diff --git a/main.go b/main.go index 53d5edee36d003e006ffd0a3653f543c7fdb317d..bb40c34f7b6174fd096b792a43b347a6f78afe01 100644 --- a/main.go +++ b/main.go @@ -46,9 +46,9 @@ func main() { responseType := "code" // DEV API - authURL := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize" + // authURL := "https://gw.hml.api.enedis.fr/dataconnect/v1/oauth2/authorize" // PROD API - //authURL := "https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize" + authURL := "https://mon-compte-particulier.enedis.fr/dataconnect/v1/oauth2/authorize" redirectUrl := authURL +"?client_id="+ clientId +"&duration=P6M&redirect_uri="+ redirectUri +"&response_type="+ responseType +"&state="+ state +"-"+ cozyOrigin @@ -161,9 +161,9 @@ func main() { fmt.Printf("refresh_token: %s\n", refreshToken) // DEV API - tokenUrl := "https://gw.hml.api.enedis.fr/v1/oauth2/token" + // tokenUrl := "https://gw.hml.api.enedis.fr/v1/oauth2/token" // PROD API - // tokenUrl := "https://gw.prd.api.enedis.fr/v1/oauth2/token" + tokenUrl := "https://gw.prd.api.enedis.fr/v1/oauth2/token" data := url.Values{} data.Set("client_id", clientId)