Skip to content

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

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

Author

Bracken Spencer

License

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


Useful Links

About

Racket 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

Languages