import-source
Use the interface t import sources.
Request Mode
POST http://ip/mwapi/import-source
Parameter | Description |
---|---|
fileName | The filename |
md5 | The MD5 value of the file |
sourceType | The source type 1: picture 2: video 6: music |
ps: The file has been uploaded to the server through “/mwapi/upload-source-file”.
Response Body
JSON structure is as follows:
{
"info":{
"duration":0,
"filePath":"2039/2039.png",
"height":1080,
"id":2039,
"name":"IMG_3162",
"rotation":0,
"thumbnailPath":"2039/2039.thumb.jpeg",
"type":1,
"width":1440
},
"message":"success",
"result":0
}
1. Response Status
"status": 0
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values. |
info | The source entity |