Skip to content

Rust crate wrapping access to the public RESTful Gravatar API

License

Notifications You must be signed in to change notification settings

cathive/gravatar-api-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gravatar API Client for Rust

A small library to access the Gravatar API, inspired by rust-gravatar.

Example Usage

extern crate gravatar_api;
use gravatar_api::avatars;

let url = avatars::Avatar::builder("[email protected]")
    .size(512)
    .default(avatars::Default::RoboHash)
    .rating(avatars::Rating::G)
    .build()
    .image_url();
assert_eq!(
    url.as_str(),
    "https://www.gravatar.com/avatar/836f82db99121b3481011f16b49dfa5fbc714a0d1b1b9f784a1ebbbf5b39577f?s=512&r=g&d=robohash"
);

About

Rust crate wrapping access to the public RESTful Gravatar API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages