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.
Squeak implementation to interact with the Gravatar API.
- Squeak 6.0 reference platform.
- Examples and tests included.
- Install and run Squeak.
- In a Workspace, evaluate:
Installer ensureRecentMetacello.
Metacello new
baseline: 'Gravatar';
repository: 'github://brackendev/GravatarDemo-Squeak:master';
load.
Evaluate in a Workspace:
"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.
Bracken Spencer
GravatarDemo-Squeak is released under the MIT license. See the LICENSE file for more info.
- /r/smalltalk [Reddit]
- @SqueakSmalltalk [Twitter]
- forum.world.st
- squeak.org