Versions Compared

Key

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

...

Use the file list API to fetch an array of file list for the folder "report":

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

...

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

Code Block
curl --locationPOST '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"
}'

...

For those registries that are permitted to use the full dataset the statement below will fetch that. You can download the file in the folder "download"

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

...