Romquenin
(Romquenin)
1
Hello, i would like to know if it’s possible to replace REST API password with Tokens.
With the api password the http code is:
http://MYADRESS:8123/api/services/script/turn_on?api_password=MYPASSWORD
I have made a lot of research, found interesting topics but with no solution. The coming codes doesn’t work:
http://MYADRESS:8123/api/services/script/turn_on?acces_token=MYTOKEN
http://MYADRESS:8123/api/services/script/turn_on?token=MYTOKEN
Sorry for asking.
Thanks
Molodax
(Alex)
2
Have you found a solution?
Try this,
use “?Authorization: Bearer MYTOKEN”
instead of “?api_password=MYPASSWORD”:
http://myadress:8123/api/states/sensor.door?Authorization: Bearer MYTOKEN
MYTOKEN is your Long-Lived Access Token
See REST API doc if using CURL.
Molodax
(Alex)
4
Unfortunately, it doesn’t work
Here is what I got from Firefox:
Just curious, how do you send your http?
Molodax
(Alex)
6
I’m actually trying to replace api_password in my ifttt applet.
It looks like ifttt gets 401 in this case.
Don’t use IFTTT, sorry it doesn’t work for you.
Tyfoon
(@Tyfoon)
8
Hi, have you ever found a solution? With 101 removing the old possibility completely I also have to make some changes…