setAvatarCatching

suspend fun setAvatarCatching(hash: String, avatarId: String, oauthToken: String): GravatarResult<Unit, ErrorType>

Sets the avatar for the given email (hash). This method will catch any exception that occurs during the execution and return it as a GravatarResult.Failure.

Return

The result of the operation

Parameters

hash

The hash of the email to set the avatar for

avatarId

The ID of the avatar to set

oauthToken

The OAuth token to use for authentication