Hi i am new to node-red and trying to execute the http request by 'set by msg.method'
Now, I cannot find any resource to get my head around how to inject the string URL.
As of now, i have a function right before the http request node. Lets call the function A. In Function A date ranges are generated
Date1-Date2
Date2-Date3
Date3-Date4
and based on the dates i am creating a URL string with the format as followed.
msg.payload = "Token";
msg.headers = {
Authorization: "Bearer " + p.access_token
};
msg.url = "HTTP GET http://ip:port/API/x/x/x?FromDateUTC="+Date1+"&ToDateUTC="+Date2;
Function A returns msg
I was able to execute and get the required results when the http request node method was "GET".
But now because of the different date ranges i can not use the http request node method GET.