Skip to content
Snippets Groups Projects
Commit d05317c2 authored by Yoan VALLET's avatar Yoan VALLET
Browse files

Switch to Enedis PROD API

parent 5185481b
No related branches found
No related tags found
No related merge requests found
Pipeline #5586 passed
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment