Page 1 of 1

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

Posted: 11 Jan 2017, 09:23
by teberg@nordigi.no
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 ?

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

Posted: 11 Jan 2017, 10:00
by kiboost
try with https://my.netatmo.com

I have modified some webhook scripts last week because api.netatmo didn't answered anymore ...

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

Posted: 11 Jan 2017, 14:43
by teberg@nordigi.no
Hi!

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

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

Posted: 11 Jan 2017, 14:46
by teberg@nordigi.no
Hi!

Same result using -> https://my.netatmo.com/oauth2/token ??

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

Posted: 11 Jan 2017, 22:32
by teberg@nordigi.no
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

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

Posted: 12 Jan 2017, 05:43
by tanaike
Can I ask you about errors and your script for using API?

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

Posted: 12 Jan 2017, 08:07
by teberg@nordigi.no
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 ?????

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

Posted: 12 Jan 2017, 09:09
by tanaike
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.

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

Posted: 12 Jan 2017, 09:45
by kiboost
just tried here, with https://api.netatmo.net/oauth2/token and all works