Watch.GetConnectToken
The Watch.GetConnectTokenmethod uses the default Connect Server host as defined in the Workflow preferences (see OL Connect preferences) to log into the Connect Server and retrieve an authorization token.
Syntax
Watch.GetConnectToken()
Return value
The method returns a JSON structure like the following:
{
"host": "localhost",
"port": 1234,
"token": "fdjhfds89r378cm034573890mc3y893r092p",
"method": "basic",
"protocol" : "http",
"tokenExpiration": "Fri, 1 Sep 2023 11:42:33 -0400"
}
where:
host
is the host or IP address of the server.port
is the TCP port number.token
is the authentication token.method
is the authentication method; currently, only basic is supported.-
protocol
is the protocol used by the server: either “http” or “https”. -
tokenExpiration
is the time stamp string representing the expiration time for the token.
Examples
JavaScript
Watch.GetConnectToken();
VBScript
Watch.GetConnectToken
Python
Watch.GetConnectToken();
Perl
$Watch->GetConnectToken();