Skip to content

Latest commit

 

History

History
64 lines (43 loc) · 2.09 KB

README.md

File metadata and controls

64 lines (43 loc) · 2.09 KB

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-Racket

Racket implementation to interact with the Gravatar API.

Installation

  1. Download this project.
  2. Install Racket and run DrRacket.
  3. Install the http package via the menubar: File -> Install Package...
  4. Open racket.rkt from this repository.
  5. Load the file in the REPL via the menubar: Racket -> Run

Example Usage

Evaluate in the REPL:

;; Retrieve the image for the email address
(image-request "email@example.com")

;; Retrieve the image for the email address (2048x2048 px)
(image-request "email@example.com" 2048)
;; Retrieve the profile for the email address
(profile-request "email@example.com")

To run the tests, execute in a shell:

raco test gravatar-test.rkt

Author

Bracken Spencer

License

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


Useful Links