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.
Pharo implementation to interact with the Gravatar API.
- Pharo 10 reference platform.
- Examples and tests included.
In a Playground, Do it:
Metacello new
repository: 'github://brackendev/GravatarDemo-Pharo/src';
baseline: 'Gravatar';
load.
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.
This project makes use of the following third-party libraries:
Bracken Spencer
GravatarDemo-Pharo is released under the MIT license. See the LICENSE file for more info.
- /r/smalltalk [Reddit]
- @pharoproject [Twitter]
- forum.world.st
- pharo.org