https://github.com/brackendev/gravatardemo-squeak
Squeak implementation to interact with the Gravatar API. Useful example for new users
https://github.com/brackendev/gravatardemo-squeak
api-client api-wrapper demo gravatar gravatar-api new-user smalltalk squeak
Last synced: 4 months ago
JSON representation
Squeak implementation to interact with the Gravatar API. Useful example for new users
- Host: GitHub
- URL: https://github.com/brackendev/gravatardemo-squeak
- Owner: brackendev
- License: mit
- Created: 2016-07-02T17:36:28.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T18:35:49.000Z (over 3 years ago)
- Last Synced: 2025-02-25T19:34:10.951Z (8 months ago)
- Topics: api-client, api-wrapper, demo, gravatar, gravatar-api, new-user, smalltalk, squeak
- Language: Smalltalk
- Homepage: http://bracken.dev/
- Size: 22.5 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
_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](https://github.com/brackendev/GravatarDemo-Clojure), [F#](https://github.com/brackendev/GravatarDemo-FSharp), [Newspeak](https://github.com/brackendev/GravatarDemo-Newspeak), [Pharo](https://github.com/brackendev/GravatarDemo-Pharo), [Racket](https://github.com/brackendev/GravatarDemo-Racket), and [Squeak](https://github.com/brackendev/GravatarDemo-Squeak)._
- - -
GravatarDemo-Squeak
===================**[Squeak](https://www.squeak.org/) implementation to interact with the [Gravatar API](https://en.gravatar.com/site/implement/).**
* [Squeak 6.0](https://www.squeak.org/) reference platform.
* Examples and tests included.## Installation
1. Install and run [Squeak](https://www.squeak.org/).
2. In a Workspace, evaluate:```smalltalk
Installer ensureRecentMetacello.
Metacello new
baseline: 'Gravatar';
repository: 'github://brackendev/GravatarDemo-Squeak:master';
load.
```## Example Usage
Evaluate in a Workspace:
```smalltalk
"Retrieve the image for the email address, open in an inspector"
(Gravatar retrieveImageForEmail: 'email@example.com') inspect.
``````smalltalk
"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.
``````smalltalk
"Retrieve the profile for the email address, open in an inspector"
(Gravatar retrieveProfileForEmail: 'email@example.com') inspect.
```## Author
Bracken Spencer
* [GitHub](https://www.github.com/brackendev)
* [LinkedIn](https://www.linkedin.com/in/brackenspencer/)
* [Twitter](https://twitter.com/brackendev)## License
GravatarDemo-Squeak is released under the MIT license. See the LICENSE file for more info.
- - -
## Useful Links
* [/r/smalltalk](https://www.reddit.com/r/smalltalk/) [Reddit]
* [@SqueakSmalltalk](https://twitter.com/SqueakSmalltalk) [Twitter]
* [forum.world.st](http://forum.world.st/)
* [squeak.org](https://www.squeak.org/)