REST APIs

IDriveSync EVS REST APIs: Development now made easy!

Account validation

Validate your IDriveSync account by using the validateAccount API.

Quick links

Syntax for ‘validateAccount’ API:

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

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 during account validation:
<tree message="SUCCESS" desc="VALID ACCOUNT" configstatus="NOT SET"/> Or
<tree message="SUCCESS" desc="VALID ACCOUNT" configstatus="SET" configtype="PRIVATE"/>

wherein, configstatus states if the Encryption configuration for the account exists or not.

Note: If the configstatus="NOT SET" then use configureAccount API to configure your account with AES 256-bit encryption.

Description:
  • tree
    Root node with attributes; message and desc.
  • message
    This attribute describes the operation as SUCCESS or FAIL.
  • 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"/>

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

PHP:

Python:

Ruby:

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