UserClient

class UserClient(val client: HttpClient)

Client to access user related functionalities

Constructors

Link copied to clipboard
fun UserClient(client: HttpClient)

Functions

Link copied to clipboard
fun create(user: User): User

Creates a new user

Link copied to clipboard
fun dissociate(userId: String): User

Removes the user's association with an external system

Link copied to clipboard
fun get(userId: String): User

Gets a user using its Id

Link copied to clipboard
fun getSeveral(    externalUserId: String? = null,     gender: String? = null,     birthYear: Int? = null,     height: Int? = null,     weight: Int? = null): List<User>

Gets several users based on the provided criteria

Link copied to clipboard
fun update(user: User): User

Updates the user information

Properties

Link copied to clipboard
val client: HttpClient

Ktor HttpClient used to make HTTP requests