Route: https://api.kayran.live/GetFiles
Use this function to Fetch all the Files that are in your Server’s Storage.
Roles Required: Admin and Users. Private Users can only fetch Files they have uploaded.
Request Syntax
{
“apiKey”: “String”
}
Request Parameters
Parameters being used in the Request
Parameter Name :
apiKey
Parameter Usage and Options :
Your Kayran given API Key.
How do I get it ? :
Located in the “Profile” section.
Note : by default, the “API Status” is enabled, unless, the Admin has disabled it in the “Server Settings” section.
Type :
String
Is it Optional ? :
No.
Successful Response
{
“Error”: 0,
“Function”: “GetFiles”,
“Data”: [
{
“name”: “File.txt”,
“size”: 12315651.0,
“permission”: “Ok”
}
]
}
Errors and their Possible Causes
For more information, please refer to the General Errors section.