You can import this in Node-Red
[{"id":"8c1739a7f0f6265a","type":"function","z":"d8d54f55faa2b7bb","name":"Set payload","func":"msg.payload = { \"userName\": \"Client ID\", \"password\": \"Client Secret\", \"userSpace\": \"Client ID\", \"database \": \"\" };\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":610,"y":300,"wires":[["76c769c4a15b0f75"]]},{"id":"76c769c4a15b0f75","type":"http request","z":"d8d54f55faa2b7bb","name":"Post Authentication","method":"POST","ret":"obj","paytoqs":"body","url":"https://everhome.cloud/device/56/execute","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"Authorization","keyValue":"","valueType":"other","valueValue":"Bearer mytoken"},{"keyType":"User-Agent","keyValue":"","valueType":"other","valueValue":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"keyType":"Accept","keyValue":"","valueType":"other","valueValue":"*/*"},{"keyType":"Accept-Encoding","keyValue":"","valueType":"other","valueValue":"gzip, deflate, br"},{"keyType":"Cache-Control","keyValue":"","valueType":"other","valueValue":"no-cache"},{"keyType":"Content-Type","keyValue":"","valueType":"other","valueValue":"application/json"}],"credentials":{"user":"","password":""},"x":790,"y":300,"wires":[["bca52bca9785cb14"]]},{"id":"bca52bca9785cb14","type":"function","z":"d8d54f55faa2b7bb","name":"Parse xelion authorization","func":"// Clear headers and Parse xelion authorization from payload\nmsg.headers = {};\nmsg.headers['Authorization'] = 'Bearer '.concat(msg.payload.authentication);\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":300,"wires":[["172539361fa17073"]]},{"id":"172539361fa17073","type":"http request","z":"d8d54f55faa2b7bb","name":"Get phonelist","method":"GET","ret":"bin","paytoqs":"ignore","url":"https://everhome.cloud/device/56/execute","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[{"keyType":"Accept","keyValue":"","valueType":"other","valueValue":"*/*"},{"keyType":"Accept-Encoding","keyValue":"","valueType":"other","valueValue":"gzip, deflate, br"},{"keyType":"Content-Type","keyValue":"","valueType":"other","valueValue":"application/x-www-form-urlencoded ; charset=UTF-8"},{"keyType":"User-Agent","keyValue":"","valueType":"other","valueValue":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"},{"keyType":"other","keyValue":"x-requested-with","valueType":"other","valueValue":"XMLHttpRequest"}],"credentials":{"user":"","password":""},"x":1220,"y":300,"wires":[["f3bfa3c3cf97291a"]]},{"id":"f3bfa3c3cf97291a","type":"gzip","z":"d8d54f55faa2b7bb","name":"Unzip payload","x":1000,"y":360,"wires":[["fdbd41499711d99c"]]},{"id":"fdbd41499711d99c","type":"json","z":"d8d54f55faa2b7bb","name":"Convert json to string","property":"payload","action":"","pretty":true,"x":1200,"y":360,"wires":[["4430b1ea96959851"]]},{"id":"a5738b37b17d6a99","type":"inject","z":"d8d54f55faa2b7bb","name":"Manual trigger","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":420,"y":300,"wires":[["8c1739a7f0f6265a"]]},{"id":"4430b1ea96959851","type":"debug","z":"d8d54f55faa2b7bb","name":"debug 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1400,"y":360,"wires":[]}]
after which it’ll look like this:
Note that this you can only use a some sort of guide line, as it is written for something else.
Use the manual trigger to trigger it, and then you can view the result in the debug node:
You need to rewrite the ‘set payload’ with your own data