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

Page 4

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

Image 4
Contents Application Programming Interface API Manual ServSwitch iPATH Manager API Documentation API version Changelog LoginMethods Logout Getdevices Device item=4 did170/did Device item=1 did64/did Getchannels Getpresets Connectionpreset /apiresponse Connectchannel Connectpreset Disconnectpreset DisconnectchannelServSwitch iPATH Manager API Documentation Blackbox.com Black Box Tech Support FREE! Live /7