CDN API Test in browser

List your files

Retrieve the list of files stored in the CDN.

Through this function it is possible to retrieve the UID code for each file to be used 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 to display files (max 500)

True

limit String

Takes two numeric arguments separated by comma (ex: 10,10). The first argument specifies the offset of the first file to return, and the second specifies the maximum number of files to return. Default is 0,500.

False

beauty Boolean

Format your JSON to make it more readable. Default is false.

False

 

Success 200 - Default Mode

It will be a JSON string

      
{
    "resources": {
        "0": {
            "creationDate": "2017-10-16T12:14:46.473Z",
            "UID": "7iikf1",
            "size": 44416,
            "url": "https://cdn.dotmaui.com/libs/img/33399.jpg"
        },
        "1": {
            "creationDate": "2017-10-16T12:14:46.473Z",
            "UID": "TnHGii",
            "size": 67280,
            "url": "https://cdn.dotmaui.com/libs/img/33400.jpg"
        }
    },
    "spaceUsed": 373885772,
    "freeSpace": 1073741824
}

Single file operations

Retrieve the file information or delete the file.

POSTGET *
https://api.dotmaui.com/client/1.0/cdn/{UID}/

The value {UID} should be replaced with the UID code of the file you want to perform operations on.

Parameters

Field Type Description Required
apikey String

.Maui Api key

True

cmd String

Supports the del value to delete the file or the info value to get information about the specified file. Default is info.

False

beauty Boolean

Format your JSON to make it more readable. Default is false.

False

 

Success 200 - Default Mode

It will be a JSON string

{
    "url": "https://cdn.dotmaui.com/appelbana/img/48647.jpg",
    "creationDate": "2018-08-23T06:30:04.032Z",
    "size": 34448,
    "UID": "MF26CQ"
}
{
    "result": "Item deleted successfully"
}

* Only for premium users.