REST APIs

IDrive EVS REST APIs: Development now made easy!

Status

Verify the existence of a particular file / folder in your IDrive account using the isFileFolderExists API.

Quick links

Syntax for 'isFileFolderExists' API:

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

Server address:
Use
getServerAddress API to retrieve the IDrive server address.

HTTP method: POST
Input parameters:
uid username or email address
pwd password
p file / folder path name (in your account)

Output:
Below is a sample XML output generated during this API call:
<?xml version="1.0" encoding="UTF-8"?>
<tree message="SUCCESS">
<item path="/Data/" result="SUCCESS"/>
</tree>

Description:
  • tree
    Root node with attributes message.
  • message
    This attribute describes the operation as SUCCESS or FAIL.
  • result
    This attribute describes the file/folder exists or not.

Following cases explain the expected outputs during INVALID operations:
  • Case 1: Empty Username or Password

    The output is as follows:
    <tree message="ERROR" desc="INVALID PARAMETERS"/>
  • Case 2: Invalid Username or Password

    The output is as follows:
    <tree message="ERROR" desc="INVALID USER"/> Or
    <tree message="ERROR" desc="INVALID PASSWORD"/>

Code snippets for Java, PHP, Python and Ruby:
Java:

PHP:

Python:

Ruby:

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