ServSwitch iPATH Manager API Documentation
Examples
Input:
/api/?v=1&method=login&username=xxxxx&password=xxxxx
Output:
<api_response> <version>1</version>
</api_response> or <api_response>
<version>1</version>
<errors>
<error>
<code>2</code>
<msg>Invalid username or password</msg>
</error>
</errors>
</api_response>
logout
This method was last updated in API version 1 and is compatible with API requests from version 1 onwards.
The authentication token provided by the login function can be used until the logout function is called.
Input parameters:
-token
-v (the IPATH API version this request is designed for)
Output values:
-timestamp - the current server time
-success - 0 = fail, 1 = success
Examples
Input:
/api/?method=logout&token=xxxxx&v=1
Output:
<api_response> <version>1</version>
s</api_response>
Page 4 |