I’m building a new module for a custom app I’ve built for FileCloud. I’m trying to add the download a file endpoint. I can get it to run without errors, but I can’t get any output. I need something in the “response” line, but I’ve no idea what to put. I’ve tried using the same code as all the other modules I’ve built, but nothing helps. Can anyone help?
This is the link to the FileCloud API docs:
https://fcapi.filecloud.com/#/file/downloadfile
This is my code. The connection and params etc. are all good. It’s just the response code I need.
{
“url”: “/core/downloadfile”,
“method”: “GET”,
“qs”: {
“filepath”: “{{parameters.filepath}}”,
“filename”: “{{parameters.filename}}”,
“checkonly”: false
},
"headers": {
"cookie": "{{parameters.cookie}}"
},
"response": {
"output": "{{data}}"
}
}