HI i am new to nodered and api backend programming.
I am trying to do a HTTP get to get someresult from my application API
(i was able to do it in postman)
i test few day and read thru some topic but still cannot able to do it in node red
it always return "{"code":70031,"msg":"token does not exist or has expired!"}"
my code was following:
[{"id":"bef8662a.6bfc08","type":"http request","z":"d23735a7.8851a8","name":"","method":"GET","ret":"obj","paytoqs":false,"url":"https://global-api.quectel.com/v1/data?imei=868681042860542","tls":"","persist":false,"proxy":"","authType":"","x":670,"y":520,"wires":[["d6db3320.b975"]]},{"id":"9254afb2.18e66","type":"function","z":"d23735a7.8851a8","name":"","func":"msg.headers = {\n Authorization: \"Bearer 680a3564-fba7-4b93-840b-3d225aecf555\"\n}\nreturn msg;","outputs":1,"noerr":0,"x":470,"y":700,"wires":[["bef8662a.6bfc08"]]},{"id":"d6db3320.b975","type":"debug","z":"d23735a7.8851a8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","x":930,"y":520,"wires":[]},{"id":"1cfaeccd.d1bc63","type":"inject","z":"d23735a7.8851a8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":240,"y":540,"wires":[["9254afb2.18e66","bef8662a.6bfc08","e75a2a08.0fa6b8","4b333d04.64bbc4"]]},{"id":"e75a2a08.0fa6b8","type":"function","z":"d23735a7.8851a8","name":"","func":"msg = {}\nmsg.payload = {}\nmsg.headers = {};\nmsg.headers['Authorization'] = \"Bearer \" + \"680a3564-fba7-4b93-840b-3d225aecf555\"\n\nreturn msg;","outputs":1,"noerr":0,"x":490,"y":440,"wires":[["bef8662a.6bfc08"]]},{"id":"4b333d04.64bbc4","type":"http request","z":"d23735a7.8851a8","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"https://global-api.quectel.com/v1/data?imei=868681042860542","tls":"","persist":false,"proxy":"","authType":"bearer","x":682.01953125,"y":601.00390625,"wires":[["d6db3320.b975"]]}]