REST APIs

IDriveSync EVS REST APIs: Development now made easy!

Display Quota

Calculate the quota usage of your IDriveSync account using the getAccountQuota API.

Quick links

Syntax for ‘getAccountQuota’ API:

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

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

HTTP method: POST
Input parameters:
uid username or email address
pwd password


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

Output:
Below is a sample XML output, generated while displaying the quota:
<?xml version="1.0" encoding="UTF-8"?>
<tree message="SUCCESS" totalquota="53687091200" usedquota="32102717" filecount="948"/>

Description:
  • tree
    Root node with attributes message, desc, totalquota, usedquota, filecount.
  • message
    This attribute describes the operation as SUCCESS or ERROR.
  • filecount
    This attribute displays the total number of files that are available in your account.
  • totalquota
    This attribute displays the total quota of your account in bytes.
  • usedquota
    This attribute displays the total used space in bytes.
  • desc
    This attribute displays the error(s) that are generated during an invalid operation.

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"/>
  • Case 3: Account not configured

    Encryption configuration is a must for the IDriveSync account. If the configuration is not done for an account, the output is as follows:
    <tree message="ERROR" desc="ACCOUNT NOT YET CONFIGURED" configstatus="NOT SET"/>

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

PHP:

Python:

Ruby:

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