AvatarService

class AvatarService(okHttpClient: OkHttpClient? = null)

Service for managing Gravatar avatars.

Constructors

Link copied to clipboard
constructor(okHttpClient: OkHttpClient? = null)

Functions

Link copied to clipboard
suspend fun upload(file: File, email: Email, wordpressBearerToken: String): Result<Unit, ErrorType>

Uploads a Gravatar image for the given email address.