Tiny scala library for Gravatar
Scala
Switch branches/tags
Clone or download
Latest commit e06a3e9 Nov 17, 2016
Permalink
Failed to load latest commit information.
project New version 1.0.3 Jun 23, 2014
src New version 1.0.3 Jun 23, 2014
.gitignore First commit Aug 10, 2012
LICENSE Add author name and year to license Dec 3, 2012
README.md New version 1.0.3 Jun 23, 2014
build.sbt Bump Scala version to 2.12.0 Nov 17, 2016
publish.sbt New version 1.0.3 Jun 23, 2014

README.md

Gravatar - because I shouldn't have to upload a picture of myself in a sombrero more than once...

API

Simple

Gravatar("you@example.com").avatarUrl

To get a secure URL (for embedding on websites served over HTTPS/SSL)

Gravatar("you@example.com").ssl(true).avatarUrl

Setting all the properties

Gravatar(email).ssl(true).default(Monster).maxRatedAs(R).forceDefault(true).size(100).avatarUrl

More info at Gravatar

Adding the Scravatar dependency

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.3"
  )

to your build file

With Maven

<dependency>
  <groupId>com.andersen-gott</groupId>
  <artifactId>scravatar_2.11</artifactId>
  <version>1.0.3</version>
</dependency>