/api/item/info
Last updated
Last updated
GET
Get Properties of the specified file, including the file name, tags, categorizations, folders, dimensions, etc.
Sample Code:
var requestOptions = {
method: 'GET',
redirect: 'follow'
};
fetch("http://localhost:41595/api/item/info?id=KBHG6KA0Y5S9W", requestOptions)
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.log('error', error));
Results Returned:
{
"status": "success",
"data": {
"id": "KBKE04XSTXR7I",
"name": "Rosto",
"size": 21950,
"ext": "jpg",
"tags": [],
"folders": [
"KBKE0240V8OII"
],
"isDeleted": false,
"url": "https://www.pinterest.com/pin/380343131025657796/",
"annotation": "",
"modificationTime": 1592460728472,
"width": 623,
"height": 623,
"noThumbnail": true,
"lastModified": 1592460776990,
"palettes": [
{
"color": [
132,
236,
244
],
"ratio": 49,
"$$hashKey": "object:604"
},
{
"color": [
249,
220,
221
],
"ratio": 24,
"$$hashKey": "object:605"
},
{
"color": [
250,
149,
150
],
"ratio": 12,
"$$hashKey": "object:606"
},
{
"color": [
8,
45,
142
],
"ratio": 11,
"$$hashKey": "object:607"
},
{
"color": [
189,
76,
91
],
"ratio": 1.16,
"$$hashKey": "object:608"
},
{
"color": [
174,
214,
221
],
"ratio": 0.39,
"$$hashKey": "object:609"
}
]
}
}
Parameter
Description
id
ID of the file