batchLookupUserUname

Looks up multiple user usernames from their unique username hashes (unames). This operation allows you to retrieve the email addresses associated with a list of username hashes.

Samples


fun main() { 
   //sampleStart 
   // Lookup multiple user unames
val resp = wickrClient.batchLookupUserUname {
    networkId = "12345678"
    unames = listOf<String>(
        "a1b2c3d4e5f6",
        "g7h8i9j0k1l2"
    )
    clientToken = "f47ac10b-58cc-4372-a567-0e02b2c3d479"
} 
   //sampleEnd
}

fun main() { 
   //sampleStart 
   // Partial failure uname not found
val resp = wickrClient.batchLookupUserUname {
    networkId = "12345678"
    unames = listOf<String>(
        "a1b2c3d4e5f6",
        "invaliduname"
    )
} 
   //sampleEnd
}