retrieveCatching

suspend fun retrieveCatching(oauthToken: String, hash: Hash): GravatarResult<List<Avatar>, ErrorType>

Retrieves a list of available avatars for the authenticated user. This method will catch any exception that occurs during the execution and return it as a GravatarResult.Failure.

Return

The list of avatars

Parameters

oauthToken

The OAuth token to use for authentication

hash

The hash of the email to associate the avatars with