Companion

object Companion

Functions

Link copied to clipboard
fun call(    accessToken: String,     endPoint: String,     params: Map<String, Any> = emptyMap(),     method: Methods = Methods.POST): CallResponse

Executes an API call.

Link copied to clipboard
fun Logger.isSevereLoggable(): Boolean

Is Level.SEVERE logging enabled.

Link copied to clipboard
fun String.isValidUrl(): Boolean

Validates a URL.

Link copied to clipboard
fun String.removeHttp(): String

Removes http(s) scheme from string.

Link copied to clipboard
fun String.toEndPoint(): String

Builds the full API endpoint URL using the Constants.API_BASE_URL.

Properties

Link copied to clipboard
val logger: Logger

The logger instance.

Sources

Link copied to clipboard