Request token & Authorize URL

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
gschloem
Posts: 2
Joined: 23 Jan 2013, 16:03

Request token & Authorize URL

Post by gschloem » 23 Jan 2013, 16:20

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

trosenblatt
Posts: 233
Joined: 18 Sep 2012, 12:18

Re: Request token & Authorize URL

Post by trosenblatt » 23 Jan 2013, 17:44

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.
Thomas Rosenblatt, Netatmo Team.

gschloem
Posts: 2
Joined: 23 Jan 2013, 16:03

Re: Request token & Authorize URL

Post by gschloem » 24 Jan 2013, 08:42

Hello Thomas,

thanks for information.

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

kind regards
Gerold

Post Reply

Return to “Netatmo API”