getUser

inline suspend fun WickrClient.getUser(crossinline block: GetUserRequest.Builder.() -> Unit): GetUserResponse

Retrieves detailed information about a specific user in a Wickr network, including their profile, status, and activity history.

Samples

import aws.smithy.kotlin.runtime.time.Instant

fun main() { 
   //sampleStart 
   // Get user information
val resp = wickrClient.getUser {
    networkId = "12345678"
    userId = "12345"
} 
   //sampleEnd
}
import aws.smithy.kotlin.runtime.time.Instant

fun main() { 
   //sampleStart 
   // Get user info with activity time range
val resp = wickrClient.getUser {
    networkId = "12345678"
    userId = "12345"
    startTime = Instant.fromEpochSeconds(1704067200, 0)
    endTime = Instant.fromEpochSeconds(1705500000, 0)
} 
   //sampleEnd
}