Me

class Me(api: UmamiApi)

Provides functionalities for interacting with the Me API in Umami.

Parameters

umami

The UmamiApi instance used for making HTTP requests.

Constructors

Link copied to clipboard
constructor(api: UmamiApi)

Functions

Link copied to clipboard
suspend fun getSession(): Session

Retrieves the current session information for the authenticated user.

Link copied to clipboard
suspend fun getTeams(): SearchResponse<Team>

Retrieves a list of teams for the authenticated user.

Link copied to clipboard
suspend fun getWebsites(includeTeams: Boolean? = null): SearchResponse<Website>

Retrieves a list of websites for the authenticated user.