UmamiApi

class UmamiApi(block: UmamiApiConfig.() -> Unit = {})

The main entry point for the Umami REST API. This class handles interactions with the Umami API (e.g. websites, users, teams) rather than simple event tracking.

Parameters

block

DSL to configure the API settings.

Constructors

Link copied to clipboard
constructor(block: UmamiApiConfig.() -> Unit = {})

Properties

Link copied to clipboard

A suspendable map for managing custom HTTP headers. Accessible so feature classes can get/set items like Authorization.

Link copied to clipboard
val httpClient: HttpClient

An HTTP client for making requests to the Umami API. This client is configured for the REST API and is not intended for public use directly.

Functions

Link copied to clipboard

Extension function to provide easy access to Admin functionalities from an UmamiApi instance.

Link copied to clipboard

Extension function to provide easy access to Auth functionalities from an UmamiApi instance.

Link copied to clipboard

Extension function to provide easy access to Links functionalities from an UmamiApi instance.

Link copied to clipboard
fun UmamiApi.me(): Me

Extension function to provide easy access to Me functionalities from an UmamiApi instance.

Link copied to clipboard

Extension function to provide easy access to Pixels functionalities from an UmamiApi instance.

Link copied to clipboard

Extension function to provide easy access to Teams functionalities from an UmamiApi instance.

Link copied to clipboard

Extension function to provide easy access to Users functionalities from an UmamiApi instance.

Link copied to clipboard

Extension function to provide easy access to Websites functionalities from an UmamiApi instance.