Documentation of get file or folder information API - https://api.webnet.mywire.org/drive/[:drive]/info (POST)
| HTTP Parameters | Value |
|---|---|
| Method: | POST |
| URL: | https://api.webnet.mywire.org/drive/[:drive]/info |
| 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 |
| Parameters | Type | Description |
|---|---|---|
| name | string | The display name of the file or folder |
| full_name | string | The full name (with extension) |
| ext | string | File extension, empty for folders |
| mimeType | string | MIME type of the file |
| size | integer | Size in bytes (0 for folders) |
| modified | string | Last modified timestamp (ISO 8601) |
| created | string | Creation timestamp (ISO 8601) |
| accessed | string | Last accessed timestamp (ISO 8601) |
| isDirectory | boolean | True if this is a directory |
| isSymlink | boolean | True if this is a symbolic link |
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 folder of file.
Directory or file doesn’t exist
An unexpected server error occurred. Please try again later.