Admin

class Admin(umami: Umami)

Provides administrative functionalities for interacting with the Umami API. This class allows fetching lists of users and websites with optional search and pagination.

Parameters

umami

The Umami instance used for making HTTP requests.

Constructors

Link copied to clipboard
constructor(umami: Umami)

Functions

Link copied to clipboard
suspend fun getTeams(search: String? = null, page: Int? = null, pageSize: Int? = null): SearchResponse<Team>

Retrieves a paginated list of teams from the Umami API.

Link copied to clipboard
suspend fun getUsers(search: String? = null, page: Int? = null, pageSize: Int? = null): SearchResponse<User>

Retrieves a paginated list of users from the Umami API.

Link copied to clipboard
suspend fun getWebsites(search: String? = null, page: Int? = null, pageSize: Int? = null): SearchResponse<Website>

Retrieves a paginated list of websites from the Umami API.