ServSwitch iPATH Manager API Documentation

Examples

Input:

/api/?v=1&method=login&username=xxxxx&password=xxxxx

Output:

<api_response> <version>1</version> <timestamp>2012-12-14 12:12:12</timestamp> <success>1</success> <token>5cf494a71c29e9465a57a81e0a2d602c</token>

</api_response> or <api_response>

<version>1</version> <timestamp>2012-12-14 12:12:12</timestamp> <success>0</success>

<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> <timestamp>2011-02-04 15:24:15</time> <success>1</success>

s</api_response>

Page 4

724-746-5500 blackbox.com

Page 4
Image 4
Black Box ACR1000A-CTL API, servswitch ipath manager api manual Logout