Documentation of download file API - https://api.webnet.mywire.org/drive/[:drive]/open (GET)
| HTTP Parameters | Value |
|---|---|
| Method: | GET |
| URL: | https://api.webnet.mywire.org/drive/[:drive]/open |
| Params: | 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 file path in drive |
| download | boolean | NO | Set mimeType to “application/octet-stream” |
File buffer
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 file.
File doesn’t exist
An unexpected server error occurred. Please try again later.