REST APIs

IDrive EVS REST APIs: Development now made easy!

Properties

Retrieve properties of a particular file / folder like size, date of creation etc., in your IDrive account using the getProperties API.

Quick links

Syntax for 'getProperties' API:

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

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 when you call 'getProperties’ API:
<?xml version="1.0" encoding="UTF-8"?>
<tree path="/Data/" message="SUCCESS" size="2230572" lmd="2011/08/25 09:21:54" filecount="1"/>

Description:
  • tree
    Root node with attributes message, size, filecount, lmd and desc.
  • message
    This attribute describes the operation as SUCCESS or FAIL.
  • filecount
    This attribute displays the total number of files that are available within a folder.
  • size
    Total size of the folder / file in bytes.
  • lmd
    Last modified date of the file / folder.

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 properties page using this API.