Package-level declarations

Properties

Link copied to clipboard

Whether the API has currently stored a Session ID.

Link copied to clipboard

The current Session ID for the API.

Functions

Link copied to clipboard

Clears the document cache.

Link copied to clipboard

Closes the client. This should be called when the API is no longer needed.

Link copied to clipboard
@JvmName(name = "loginAsync")
suspend fun login(username: String, password: String): Boolean

Logs in to Tabroom with the given username and password.

Link copied to clipboard
fun loginAsPromise(username: String, password: String): Promise<Boolean>

Login to Tabroom using the given username and password.

Link copied to clipboard
suspend fun logout()

Logs out of Tabroom, invalidating the stored token. If there is no token, this function does nothing.