Skip to content

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

License

Notifications You must be signed in to change notification settings

brackendev/GravatarDemo-Squeak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 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-Squeak

Squeak implementation to interact with the Gravatar API.

  • Squeak 6.0 reference platform.
  • Examples and tests included.

Installation

  1. Install and run Squeak.
  2. In a Workspace, evaluate:
Installer ensureRecentMetacello.
Metacello new
  baseline: 'Gravatar';
  repository: 'github://brackendev/GravatarDemo-Squeak:master';
  load.

Example Usage

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.

Author

Bracken Spencer

License

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


Useful Links

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published