Gravatar::URL
perl6-Gravatar-URL - Make URLs for Gravatars from an email address
SYNOPSIS
use Gravatar::URL;
my $gravatar_id = gravatar_id('[email protected]'); # 'a60fc0828e808b9a6a9d50f1792240c8'
my $gravator_url = gravatar_url(
:email<[email protected]>,
:size<32>
);
my $gravator_url = gravatar_url(
:email<[email protected]>,
default => '/local.png',
:rating<R>,
:size<80>,
:short_keys<0>,
:https<1>
);
DESCRIPTION
email - required, if Str.chars=32 passed, we'll treat it as id
default - default image
rating - G, PG, R, X
size - Int 1 to 512
short_keys - use r instead of rating, d instead of default in url
https - use https://secure.gravatar.com/avatar/ instead of http://www.gravatar.com/avatar/ as the base