...
You may use the API also to fetch your reports . Unfortunately, it is not one line cmd, and need 2 steps.
1.Fetch the files list and get the file names.
: Use the following curl and endpoint to fetch an array with filedescriptors:
Code Block |
---|
curl -H "Authorization:Basic d21.....uZT==" 'https://staging-dataupload.wmda.info/api/v2/fs/reports-ion0999/?children=f ' |
You will get the result in xml format, and you can get json format, use the cmd below:
Code Block |
---|
curl -H "Authorization:Basic d21.....uZT==" 'https://staging-dataupload.wmda.info/api/v2/fs/reports-ion0999/?children=f&format=json' |
2. Fetch all the reports or the one you need:
Code Block |
---|
curl -O GET -H "Authorization:Basic d21.....uZT==" 'https://staging-dataupload.wmda.info/api/v2/io/reports-ion0999/$filename' |
In RESTLET :
Click on Code to get raw CURL syntax:
...