check-source-exist

Use the interface to check whether the source file exists.

Request Mode

 POST http://ip/mwapi/check-source-exist
Parameter Description
sourceType The source type
1: picture
2: video
6: music
md5 The MD5 value of the source file

Response Body

JSON structure is as follows:

{
    "info": {
        "find": 1,
        "source": {
            "duration": 0,
            "filePath": "2009/2009.JPG",
            "height": 1080,
            "id": 2009,
            "md5": "f7e7f0cd578a44c77aed69e7c147d676",
            "name": "IMG_3010",
            "rotation": 0,
            "secondaryType": 0,
            "thumbHeight": 144,
            "thumbWidth": 256,
            "thumbnailPath": "2009/2009.thumb.jpeg",
            "type": 1,
            "width": 1920
        }
    },
    "message": "success",
    "result": 0
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.
find 0: not founded
1: the specific preset source is founded
source The source entity

results matching ""

    No results matching ""

    results matching ""

      No results matching ""