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.
Racket implementation to interact with the Gravatar API.
- Racket 8.5 reference platform.
- Tests included.
- Download this project.
- Install Racket and run DrRacket.
- Install the http package via the menubar: File -> Install Package...
- Open racket.rkt from this repository.
- Load the file in the REPL via the menubar: Racket -> Run
Evaluate in the REPL:
;; Retrieve the image for the email address
(image-request "[email protected]")
;; Retrieve the image for the email address (2048x2048 px)
(image-request "[email protected]" 2048)
;; Retrieve the profile for the email address
(profile-request "[email protected]")
To run the tests, execute in a shell:
raco test gravatar-test.rkt
Bracken Spencer
GravatarDemo-Racket is released under the MIT license. See the LICENSE file for more info.
- /r/Racket [Reddit]
- @racketlang [Twitter]
- Getting Started [racket-lang.org]
- Racket [racket-lang.org]
- Racket News