Kabeers Drive Info API


After user has Signed into their Kabeers Drive Account get info for files or folders with This API

*IMPORTANT*
The first example shows getting info from file id, the second example shows getting folder info from folder id.



/* TODO AUTHORIZATON Complete Here */ //Getting File Info by "ID" function getFileInfoFromId(fileid) { $.getJSON("http://drive.hosted-kabeersnetwork.unaux.com/server/api/info/file.php?id=" + fileid, function (data) { for (var i = 0; i < data.Files.length; i++) { console.log(data.Files[i]); } }); } // Getting Folder info by "ID" function getFolderInfoFromId(folderid) { $.getJSON("http://drive.hosted-kabeersnetwork.unaux.com/server/api/info/folder.php?id=" + folderid, function (data) { for (var i = 0; i < data.Files.length; i++) { console.log(data.Files[i]); } }); }


This is a sample on how you can implement accessing Folders and Files from inside your App.
The response will look the same for accessing user's My Drive (ROOT) folder and accessing files from any other folder by ID.


Example Response For Files


{
   "name":"A File",
   "id":"465d2cd6841195e9c905482818b09345",
   "size":"64604",
   "path":"http://drive.hosted-kabeersnetwork.unaux.com/user-files/7aa7d5d26ad72bfe4b1401f933293c7646d02cd6841195e9c905482818b09345.png",
   "shared":"0",
   "mime":"image/png",
   "owner":"test",
   "dateCreated":"2020-05-31 23:09:45.087707",
   "dateModified":"2020-05-31 23:15:18.150134"
}

Example Response For Folders


{
   "name":"A Folder",
   "id":"ef42b8e03asa8ceaa78c6dc127ce2038",
   "shared":"1",
   "owner":"test",
   "dateCreated":"2020-05-31 23:21:09.003038",
   "dateModified":"2020-05-31 23:22:00.360854"
}



Response Details

For Files:

name id size path shared mime owner dateCreated dateModified
1 Defines the name of the File.
Can Be Changed.
Unique id of current file.
Every File has an uneditable id.
Size of current file. Where this file been stored on Kabeers Network Servers. If the file has link sharing enabled.
0 if file isn't shared & 1 if shared.
Mime Type of this file. Owner of this file.
Account used to upload this file.
When this file was created or uploaded.
Remains same.
When actions e.g. renaming was done on this file.
Can Be Changed based on user actions.


For Folders:

name id shared owner dateCreated dateModified
1 Defines the name of the Folder.
Can Be Changed.
Unique id of current Folder.
Every Folder has an uneditable id.
If the folder has link sharing enabled.
0 if folder isn't shared & 1 if shared.
Owner of this folder.
Account used to upload this folder.
When this file was created or uploaded.
Remains same.
When actions e.g. renaming was done on this file.
Can Be Changed based on user actions.



For More info Contact us at Kabeer11000@gmail.com.

© 2020 Kabeers Network | All Rights Reserved
Free Web Hosting