Simple
Gravatar("[email protected]").avatarUrl
To get a secure URL (for embedding on websites served over HTTPS/SSL)
Gravatar("[email protected]").ssl(true).avatarUrl
Setting all the properties
Gravatar(email).ssl(true).default(Monster).maxRatedAs(R).forceDefault(true).size(100).avatarUrl
More info at Gravatar
Scravatar does not depend on any third party frameworks. It is built and deployed on maven central. To use it with sbt add
libraryDependencies ++=
Seq(
"com.andersen-gott" %% "scravatar" % "1.0.4"
)
to your build file
With Maven
<dependency>
<groupId>com.andersen-gott</groupId>
<artifactId>scravatar_2.13</artifactId>
<version>1.0.4</version>
</dependency>