You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JGravatar library for interaction with Gravatar.com is a bit outdated. We could make our own library separate from Cyder and pull it in with Gradle. Then others could easily use it, submit PRs, etc.
Notes:
Use builder pattern for API parameters https://www.gravatar.com/avatar/HASH
.jpg sometimes required
default size is 80x80, allow customizing with config
?s=200
1-2048px range is valid
can supply own url to default image: ?d=https%3A%2F%2Fexample.com%2Fimages%2Favatar.jpg
d=404,mp,identicon,monsterid,wavatar,retro,robohash,blank are also valid options
force default image to always load: ?f=y
ratings: g, pg, r, x, can combine: g or pg use ?r=pg
The text was updated successfully, but these errors were encountered:
https://en.gravatar.com/site/implement/hash/ instructions for hash. Link to documentation in source code so that if people want to PR, they know where an assumption originally came from.
/*** A url parameter for a Gravatar request.*/publicenumGravatarParameter {
/** * The hash for a Gravatar request. */HASH(true),
/** * The size of the image to be returned. */SIZE,
/** * The URL to the default image to return in the case of a hash lookup failure. */DEFAULT_URL,
/** * Whether to force the default url regardless of whether the hash can be located. */FORCE_DEFAULT,
/** * The {@link GravatarDefaultPreset} type. Used to return a random custom avatar if a hash cannot be located. */DEFAULT_PRESET,
/** * The default image URL a Gravatar request. */DEFAULT_IMAGE_URL,
/** * The {@link GravatarRating} for a Gravatar request. */RATING;
/** * Whether this URL parameter is required for a Gravatar request. */privatefinalbooleanrequired;
GravatarParameter() {
this(false);
}
GravatarParameter(booleanrequired) {
this.required = required;
}
}
JGravatar
library for interaction with Gravatar.com is a bit outdated. We could make our own library separate from Cyder and pull it in with Gradle. Then others could easily use it, submit PRs, etc.Notes:
Use builder pattern for API parameters
https://www.gravatar.com/avatar/HASH
.jpg sometimes required
default size is 80x80, allow customizing with config
?s=200
1-2048px range is valid
can supply own url to default image: ?d=https%3A%2F%2Fexample.com%2Fimages%2Favatar.jpg
d=404,mp,identicon,monsterid,wavatar,retro,robohash,blank are also valid options
force default image to always load: ?f=y
ratings: g, pg, r, x, can combine: g or pg use ?r=pg
The text was updated successfully, but these errors were encountered: