Page 1 of 1

Request token & Authorize URL

Posted: 23 Jan 2013, 16:20
by gschloem
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

Re: Request token & Authorize URL

Posted: 23 Jan 2013, 17:44
by trosenblatt
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.

Re: Request token & Authorize URL

Posted: 24 Jan 2013, 08:42
by gschloem
Hello Thomas,

thanks for information.

This could be the the solution of the problem. I will try in next time ...

kind regards
Gerold