List files
This endpoint allows you to retrieve the list of files stored in the Content Delivery Network (CDN). By utilizing this function, you can obtain the unique UID code associated with each file, which can then be utilized in subsequent operations.
POSTGET *https://api.dotmaui.com/client/1.0/cdn/
Parameters
Field | Type | Description | Required |
---|---|---|---|
apikey | String |
.Maui Api key |
True |
cmd | String |
Currently, only the ls command is supported for listing files, with a maximum limit of 500. |
True |
limit | String |
This function accepts two numeric arguments separated by a comma (e.g., 10,10). The first argument indicates the offset of the first file to return, while the second specifies the maximum number of files to return. The default values are 0 and 500, respectively.
|
False |
beauty | Boolean |
Indent your JSON to improve readability. By default, this option is set to false.
|
False |
Success 200 - Default Mode
The response will be in the form of a JSON string.
{ "resources": { "0": { "creationDate": "2023-10-16T12:14:46.473Z", "UID": "7iikf1", "size": 44416, "url": "https://cdn.dotmaui.com/libs/img/33399.jpg" }, "1": { "creationDate": "2023-10-16T12:14:46.473Z", "UID": "TnHGii", "size": 67280, "url": "https://cdn.dotmaui.com/libs/img/33400.jpg" } }, "spaceUsed": 373885772, "freeSpace": 1073741824 }