CDN API

List your files

.Maui CDN API to view your files in the CDN.

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

HTTP/1.1 200 OK         
{
    "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

.Maui CDN API to get information or delete your files from CDN.

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

The UID of the requested file must be entered in the url, instead of {UID}.

Parameters

Field Type Description Required
apikey String

.Maui Api key

True

cmd String

Supports del value of deleting the specified 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

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

* Only for premium users.