HTTP Post translation to Automagic
Posted: 30 Aug 2018 21:28
Hello.
I am trying to make a HTTP POST request from Automagic in order to control smart bulbs and plugs.
The commands are the following:
curl --request POST "https://eu-wap.tplinkcloud.com/?token=YOUR_TOKEN_HERE HTTP/1.1" \
--data '{"method":"passthrough", "params": {"deviceId": "YOUR_DEVICEID_HERE", "requestData": "{\"system\":{\"set_relay_state\":{\"state\":1}}}" }}' \
--header "Content-Type: application/json"
I have followed some tutorials and I can make it work from "Insomnia RES Client" in Windows (https://insomnia.rest/)
How can I translate those commands into Automagic?
I am trying the action HTTP Request POST but since I am ignorant about these kinds of things, I really do not know what to put in what position.
Any help would be greatly appreciated.
Thank you.
I am trying to make a HTTP POST request from Automagic in order to control smart bulbs and plugs.
The commands are the following:
curl --request POST "https://eu-wap.tplinkcloud.com/?token=YOUR_TOKEN_HERE HTTP/1.1" \
--data '{"method":"passthrough", "params": {"deviceId": "YOUR_DEVICEID_HERE", "requestData": "{\"system\":{\"set_relay_state\":{\"state\":1}}}" }}' \
--header "Content-Type: application/json"
I have followed some tutorials and I can make it work from "Insomnia RES Client" in Windows (https://insomnia.rest/)
How can I translate those commands into Automagic?
I am trying the action HTTP Request POST but since I am ignorant about these kinds of things, I really do not know what to put in what position.
Any help would be greatly appreciated.
Thank you.