Skip to content

brackendev/GravatarDemo-Pharo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Gravatar demo projects are for developers to get acquainted with languages and platforms with something more than a "Hello World" example. Versions are available for Clojure, F#, Newspeak, Pharo, Racket, and Squeak.


GravatarDemo-Pharo

Pharo implementation to interact with the Gravatar API.

  • Pharo 10 reference platform.
  • Examples and tests included.

Installation

In a Playground, Do it:

Metacello new 
  repository: 'github://brackendev/GravatarDemo-Pharo/src';
  baseline: 'Gravatar';
  load.

Example Usage

In a Playground, Do it:

Gravatar exampleRetrieveImageForEmail inspect.
Gravatar exampleRetrieveImageForEmailSizeRating inspect.
Gravatar exampleRetrieveProfileForEmail inspect.
"Retrieve the image for the email address, open in an inspector"
(Gravatar retrieveImageForEmail: 'email@example.com') inspect.
"Retrieve the image (200 px by 200 px, rated 'G' or 'PG') for the email address, open in an inspector"
(Gravatar retrieveImageForEmail: 'email@example.com' size: 200 rating: 'pg') inspect.
"Retrieve the profile for the email address, open in an inspector"
(Gravatar retrieveProfileForEmail: 'email@example.com') inspect.

Acknowledgements

This project makes use of the following third-party libraries:

Author

Bracken Spencer

License

GravatarDemo-Pharo is released under the MIT license. See the LICENSE file for more info.


Useful Links

About

Pharo implementation to interact with the Gravatar API. Useful example for new users

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published