Related links
Developer Resources
Trash
The trash feature recovers file(s) / folder(s) deleted by accident. This is an added protection for your mission critical data, that may be lost due to unintentional events.
Following operations are allowed with Trash.
- Locate trash
- To Locate trash in your account, use searchFiles API with trash=yes
- Delete trash
- To delete a file from trash, use deleteFile API with trash=yes
- Download from trash
- To download the file from trash, use downloadFile API with trash=yes
- Move back files from trash
- To put back files from trash to original location in your IDrive account using the putBackFromTrash API.
Syntax for ‘putBackFromTrash’ API:
https://<server address>/evs/putBackFromTrash
Server address:
Use getServerAddress API to retrieve the IDrive server address.
HTTP method: POST
Input parameters:
-
uid |
username or email address |
pwd |
password |
pvtkey |
Private encryption key is an optional parameter and is not required if you opt for the default encryption key during your IDrive account sign up |
p |
Path of the file that which needs to revert back. |
Output:
-
Sample XML output:
<tree message="SUCCESS">
<itme path="/C/Doc/a.txt" result="SUCCESS" />
</tree>
Description:
-
- tree
Root node with attributes; message and desc.
- message
This attribute describes the operation as SUCCESS or FAIL.
- desc
This attribute holds the description of the SUCCESS or FAIL case.
Code snippets for Java, PHP, Python and Ruby:
-
Java:
PHP:
Python:
Ruby:
- Empty trash
- To clear the trash in your IDrive account using the emptyTrash API.
Syntax for ‘emptyTrash’ API:
https://<server address>/evs/emptyTrash
Server address:
Use
getServerAddress API to retrieve the IDrive server address.
HTTP method: POST
Input parameters:
-
uid |
username or email address |
pwd |
password |
pvtkey |
Private encryption key is an optional parameter and is not required if you opt for the default encryption key during your IDrive account sign up |
Output:
-
Sample XML output:
<tree message="SUCCESS" desc="CLEARED COMPLETE TRASH"/>
Description:
-
- tree
Root node with attributes; message and desc.
- message
This attribute describes the operation as SUCCESS or FAIL.
- desc
This attribute holds the description of the SUCCESS or FAIL case.
Code snippets for Java, PHP, Python and Ruby:
-
Java:
PHP:
Python:
Ruby: