Hi,
I am trying to get thumbnail of my dropbox files via api but I am not getting how can I show same or in what result I can access the same. Please help me.
In which format I would get thumbnails, where and how will I show it to Img tag
function getDocumentThumbnail(name, fileName, userObjectID, $callingFunctionSuccess) {
var path = getDropboxPath(userObjectID);
var params = {
path: path + fileName
}
$.ajax({
cache: false,
type: 'POST',
url: 'https://content.dropboxapi.com/2/files/get_thumbnail',
processData: false,
contentType: 'application/octet-stream',
headers: {
'Authorization': 'Bearer ' + Tenacious.authentication.getEmpData().DropboxToken,
'dropbox-API-Arg': JSON.stringify(params),
},
}).done(function (data, e) {
}).fail(function (data) {
});
}