Documentation of get files and folders API - https://api.webnet.mywire.org/drive/[:drive]/files (POST)
HTTP Parameters | Value |
---|---|
Method: | POST |
URL: | https://api.webnet.mywire.org/drive/[:drive]/files |
Body: | JSON |
* drive: The drive name: “disk”, “media”, “photos”, App ID, Share ID, etc.
Body Parameters | Type | Required | Description |
---|---|---|---|
session | string | YES | The user’s session |
path | string | YES | The folder path in drive |
sort* | string | NO | Sort order: “desc” or “asc” (by name) |
* sort: If not specified, the default is “asc” by name.
Parameters | Type | Description |
---|---|---|
total | integer | Total number of files and folders found |
sort_order | string | Sort order used: “desc” or “asc” |
files* | array | Array of files and folders |
* files: Each file or folder object contains:
Bad request missing or invalid parameters.
Unauthorized if the session is invalid or expired.
Forbidden if the user does not have permission to access the specified drive or folder.
Directory is not found or doesn’t exist
An unexpected server error occurred. Please try again later.