2022.2

Table Of Contents
Examples
JavaScript
Watch.GetConnectToken();
VBScript
Watch.GetConnectToken
Python
Watch.GetConnectToken();
Perl
$Watch->GetConnectToken();
Watch.GetConnectTokenEx
The Watch.GetConnectTokenEx method uses the arguments passed to it to log into the Connect
Server and retrieve an authorization token.
Syntax
Watch.GetConnectTokenEx(host, port, username, password)
The arguments contain the Connect Server settings (see "OL Connect preferences" on page654), in
the form of strings (host, username and password) and a number (port).
Return value
The method returns a JSON structure containing the host, port, token and authentication method. For
example:
{
"host": "localhost",
"port": 1234,
"token": "fdjhfds89r378cm034573890mc3y893r092p",
"method": "basic"
}
l
host is the host or IP address of the server.
l
port is the TCP port number.
l
token is the authentication token.
l
method is the authentication method; currently, only basic is supported.
Page 135