getContactByUserName

fun getContactByUserName(userName: String, onCompletion: (Either<Contact, SippoResourceError>) -> Unit)

Retrieves a contact by their userName.

Parameters

userName

The userName of the contact to retrieve.

onCompletion

Callback that will be invoked when the request is completed. It will receive the contact in case of success or a SippoResourceError otherwise.