Skip to main content

ServiceAPI Methods

An object defining methods for the ServiceAPI class.

GetToken()

Returns the token assigned for the current session.

Returns:

Type: string
Session token.

Exceptions:

Type: ArgumentNullException
Throws ArgumentNullException if URL is null or empty.

Type: Exception
Throws Exception if the URL is invalid.

This is a sync method. Method runs synchronously.


GetInstanceNameFromDomain(domainAddress)

Extracts the instance name from a given domain address.

Parameters:

domainAddress (optional): string
The domain address to extract the instance name from.

Returns:

Type: string
Extracted instance name.

This is a sync method. Method runs synchronously.