bitly-shorten/docs/net.thauvin.erik.bitly/-utils/index.md
Erik C. Thauvin 9ba23fd6c3 Revert "Added CallResponse and Bitlinks.udpate()."
This reverts commit 05ee938de7fac49026118a53f5af02ff26d82ccd.
2020-03-03 13:49:58 -08:00

2 KiB

docs / net.thauvin.erik.bitly / Utils

Utils

open class Utils (source)

Provides useful generic functions.

Companion Object Properties

Name Summary
logger The logger instance.val logger: Logger

Companion Object Functions

Name Summary
call Executes an API call.fun call(accessToken: String, endPoint: String, params: Map<String, Any> = emptyMap(), method: Methods= Methods.POST):String
isValidUrl Validates a URL.fun String.isValidUrl(): Boolean
removeHttp Removes http(s) scheme from string.fun String.removeHttp(): String
toEndPoint Builds the full API endpoint URL using the Constants.API_BASE_URL.fun String.toEndPoint(): String