Skip to content

magott/scravatar

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

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

to your build file

With Maven

<dependency>
  <groupId>com.andersen-gott</groupId>
  <artifactId>scravatar_2.13</artifactId>
  <version>1.0.4</version>
</dependency>

About

Tiny scala library for Gravatar

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages