No response from https://api.netatmo.com/oauth2/token

The Netatmo API is a set of webservices allowing developers and third parties to access Netatmo device's data.
Post Reply
teberg@nordigi.no
Posts: 7
Joined: 05 Jan 2017, 10:54

No response from https://api.netatmo.com/oauth2/token

Post by teberg@nordigi.no » 11 Jan 2017, 09:23

Hi!

I have som big problems, when i try to get a new token
calling -> https://api.netatmo.com/oauth2/token

Using POST and this key¨s in Body

grant_type = refresh_token
client_id = MYCLIENTID
client_secret = MYCLIENTSECRET
refresh_token=MYREFRESHTOKEN

I get this error message after a while.
Could not get any response ???

But the strange thing is that i have a node.js that works fine ????

What is the problem here ?

kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

Re: No response from https://api.netatmo.com/oauth2/token

Post by kiboost » 11 Jan 2017, 10:00

try with https://my.netatmo.com

I have modified some webhook scripts last week because api.netatmo didn't answered anymore ...
php-simpleNetatmoAPI Simple to use php API based on official API.

teberg@nordigi.no
Posts: 7
Joined: 05 Jan 2017, 10:54

Re: No response from https://api.netatmo.com/oauth2/token

Post by teberg@nordigi.no » 11 Jan 2017, 14:43

Hi!

Why did this work on a different PC, that have onother IP ??


teberg@nordigi.no
Posts: 7
Joined: 05 Jan 2017, 10:54

Re: No response from https://api.netatmo.com/oauth2/token

Post by teberg@nordigi.no » 11 Jan 2017, 22:32

Hi!

Tryed to disable antivirus apps, and olso try to disable firewall

But no luck :(

This must be a error in the url ????
Or maby my IP is banned ????

PLEASE HELP

tanaike
Posts: 7
Joined: 27 Jul 2016, 10:34

Re: No response from https://api.netatmo.com/oauth2/token

Post by tanaike » 12 Jan 2017, 05:43

Can I ask you about errors and your script for using API?

teberg@nordigi.no
Posts: 7
Joined: 05 Jan 2017, 10:54

Re: No response from https://api.netatmo.com/oauth2/token

Post by teberg@nordigi.no » 12 Jan 2017, 08:07

Hi!

Last night it works again on my PC,
But tryed it today, but now its not working.

Using a app called Postman

I use this URL
https://api.netatmo.com/oauth2/token -> POST

And this parameters

grant_type
client_id
client_secret
scope
username
password

But this give me this error:

Could not get any response
There was an error connecting to https://api.netatmo.com/oauth2/token.
Why this might have happened:
The server couldn't send a response:
Ensure that the backend is working properly
Self-signed SSL certificates are being blocked:
Fix this by turning off 'SSL certificate verification' in Settings > General
Client certificates are required for this server:
Fix this by adding client certificates in Settings > Certificates
Request timeout:
Change request timeout in Settings > General

But if i use the same script on Postman on my other PC with onother IP
its working fine ?????

tanaike
Posts: 7
Joined: 27 Jul 2016, 10:34

Re: No response from https://api.netatmo.com/oauth2/token

Post by tanaike » 12 Jan 2017, 09:09

Thank you for your quick reply.

Although I have never used the Postman, I think that you can get access token using their parameters.

From the errors, it seems that the connection with SSL cannot done. Did you turn off SSL.

If you can use bash or windows command prompt, there is one liner code to retrieve easily access token soon. What do you use unix or windows? At mac can be used unix bash.

kiboost
Posts: 596
Joined: 21 Jun 2013, 09:27

Re: No response from https://api.netatmo.com/oauth2/token

Post by kiboost » 12 Jan 2017, 09:45

just tried here, with https://api.netatmo.net/oauth2/token and all works
php-simpleNetatmoAPI Simple to use php API based on official API.

Post Reply

Return to “Netatmo API”