Working with Node-Red, I'm facing a challenge wherein I need to retrieve a csv file through an API call. Upon making the http request, I received the following response:
{
"_msgid": "60d0351dcf215557",
"payload": "",
"topic": "",
"headers": {
"content-length": "0",
"connection": "close",
"content-type": "text/csv",
"date": "Fri, 13 May 2022 07:48:51 GMT",
"server": "Microsoft-IIS/10.0",
"access-control-expose-headers": "Request-Context",
"cache-control": "no-cache",
"expires": "-1",
"pragma": "no-cache",
"request-context": "",
"x-frame-options": "DENY",
"content-disposition": "attachment; filename=Report_20180520_0000_20180720_2359.csv",
"x-node-red-request-node": "3a8a1b06"
},
"statusCode": 200,
"responseUrl": "https://somewebsite.net/api/analytics/report/someID/file",
"redirectList": [],
"retry": 0,
"url": "https://somewebsite.net/api/analytics/report/someID/file"
My query is, how can I proceed to actually download the Report_20180520_0000_20180720_2359.csv? Appreciate any guidance provided.