REST APIs

IDriveSync EVS REST APIs: Development now made easy!

Copy paste file / folder

Copy file(s) / folder(s) from one location to another within the IDriveSync account using the copyPasteFileFolder API.

Quick links

Syntax for ‘copyPasteFileFolder’ API:

https://<server address>/evs/copyPasteFileFolder

Server address:
Use
getServerAddress API to retrieve the IDriveSync 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 IDriveSync account sign up
p Destination path
fileFolderPaths file(s) / folder(s) source path.


If you are using OAuth authentication method, uid and pwd are not required.

Output:
Below is a sample XML output generated during file deletion:
<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:

Refer web browser design screenshots to design the browser based copy paste page using this API.