Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password problem for the refresh token #8

Open
smiley-2 opened this issue Mar 3, 2019 · 2 comments
Open

password problem for the refresh token #8

smiley-2 opened this issue Mar 3, 2019 · 2 comments

Comments

@smiley-2
Copy link

smiley-2 commented Mar 3, 2019

hello,

when I want getting the refreshToken I have this error:
-bash: !xxxxxxx?': event not found
My password is interpreted, I use : ! et ? inside.

I think it's a typo But I'don't know what (I'm not good in curl)

thanks

@overfl0w11
Copy link
Owner

overfl0w11 commented Mar 11, 2019

Hi,
Sorry, last week i was busy.

You can escape your special characters in your password with \ character.
For example, you can type the following command with a password containing '?' or '!'
curl --data "grant_type=password&client_id=<YOUR_CLIENT_ID>&client_secret=<YOUR_CLIENT_SECRET>&username=<YOUR_NETATMO_LOGIN>&password=yourpasswordwith\!and\?&scope=read_thermostat" "https://api.netatmo.com/oauth2/token"

I don't test it but it should work.
Let me know.

@smiley-2
Copy link
Author

Thanks it's works, but I just realise I haven't thermostat but multiple thermostatic faucet.

so it doesn't work for.

thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants