Related links
Developer Resources
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:
-
- Code snippets for Java, PHP, Python and Ruby:
-
Java:
PHP:
Python:
Ruby: