Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1.Fetch the files list and get the file names.

Use the following curl and endpoint file list API to fetch an array of file list for the folder "report"report:

Code Block
curl --location 'https://sandbox-datamanager-api.wmda.info/api/v1/files/list' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ••••••' \
--data '{
  "ion": 9999,
  "folder": "report"
}'

...

2.  Fetch all the reports or the one you need.

Use the file download API to download the file you needed. You can only download one file a time. 

Code Block
curl --location 'https://sandbox-datamanager-api.wmda.info/api/v1/files/download' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ••••••' \
--data '{
  "ion": 9999,
  "folder": "report",
  "fileName": "<filename>.txt"
}'

...