GithubHelp home page GithubHelp logo

tdrhq / cl-gravatar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sellout/cl-gravatar

0.0 1.0 0.0 5 KB

Common Lisp interface to access Gravatar images and profiles.

License: Other

Common Lisp 100.00%

cl-gravatar's Introduction

CL-Gravatar

Common Lisp bindings to the popular Gravatar service.

(image-url email &key size default force-default-p rating)

  • size is an integer for the number of pixels along a side. Gravatar images are always square.
  • default may be either a URL to your own image, or one of :404, :mm, :identicon, :monsterid, :wavatar, or :retro.
  • force-default-p indicates whether to always use the default, even if another image is available. This is useful when you use a hash-based default like :identicon that is unique per user.
  • rating may be one of :g, :pg, :r, or :x and indicates the level of "vulgarity" that you allow on your site. The default is :g.

(profile email)

This returns the cl-json formatted profile of the user. Eventually we'll parse this into better structures, but that is TBD.

(profile-url email js-callback)

If you want to process the profile data using client-side JavaScript, this generates a URL that you can use as a src value to the HTML script element. And the JavaScript function named by js-callback will be called on the resulting JSON data.

(qr-code-url email &key size)

This returns an image URL for a QR code that encodes the URL of the user's profile page.

cl-gravatar's People

Contributors

sellout avatar tdrhq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.