Hello,
can somebody tell me why I have to change the following two lines from
define('BACKEND_ACCESS_TOKEN_URI', "https://api.netatmo.net/oauth2/token");
define('BACKEND_AUTHORIZE_URI', "https://api.netatmo.net/oauth2/authorize");
to
define('BACKEND_ACCESS_TOKEN_URI', "http://api.netatmo.net/oauth2/token");
define('BACKEND_AUTHORIZE_URI', "http://api.netatmo.net/oauth2/authorize");
in NAApiClient.php of SDK sample?
Only when I use http instead of https the example works.
And also the details of MY APPLICATIONS at dev.netatmo.com shows:
Client id xxxxxxxxxxxxxxxxxxxxx
Client secret xxxxxxxxxxxxxxxxxxxxx
Request token URL http://api.netatmo.net/oauth2/token
Authorize URL http://api.netatmo.net/oauth2/authorize
Callback URL None
Why does the example not work when I use https?
Thanks for your help
Kind regards
Gerold
Request token & Authorize URL
-
- Posts: 233
- Joined: 18 Sep 2012, 12:18
Re: Request token & Authorize URL
Hello,
Your curl certificate may be outdated please update it with this one.
http://curl.haxx.se/ca/cacert.pem
(http://curl.haxx.se/docs/sslcerts.html)
Have a good day.
Thomas.
Your curl certificate may be outdated please update it with this one.
http://curl.haxx.se/ca/cacert.pem
(http://curl.haxx.se/docs/sslcerts.html)
Have a good day.
Thomas.
Thomas Rosenblatt, Netatmo Team.
Re: Request token & Authorize URL
Hello Thomas,
thanks for information.
This could be the the solution of the problem. I will try in next time ...
kind regards
Gerold
thanks for information.
This could be the the solution of the problem. I will try in next time ...
kind regards
Gerold