Za'atar Digital

eServices for the rest of us

User Tools

Site Tools


gravatarurl:home

Gravatar URL

zdGravatarURL is a class that allows you to use the Gravatar.com API by generating the URL needed to retrieve a Gravatar member's avatar given his/her email address.

zdGravatarURL can handle all functionalities provided by the Gravatar API for avatar:

  • No email address embedded in the generated URL. Only a 128 bits hash
  • The avatar's size can be customized from 1 pixel up to 2048 pixels
  • Use predefined default avatars or your own custom picture if the email address is unknown to Gravatar
  • The display of the default avatar can be forced for testing purpose
  • 4 rating levels available for returned avatar: G, PG, R, X
  • A secured URL ( https ) can be generated if needed
  • Optional file-type extension '.jpg' on demand for compatibility purpose
  • No needs of an API key for your application and no subscription required

Getting started


Using zdGravatarURL is very simple. You just have to import the zdGravatarURL.xojo_code file in your Xojo project. To do this, use the Import command from the File menu and navigate to the zdGravatarURL file location. You can also drag & drop the zdGravatarURL class from one project window to another one.

Requirements


zdGravatarURL works with any type of project in Xojo®:

  • Desktop
  • Web
  • Console
  • iOS

You can use it with any Xojo® IDE release since r2013r1 and on any platform: MacOS X, Windows, Linux, Raspberry Pi.

License


The zdGravatarURL source code, its demo application and its documentation are distributed under the X11 License.

Copyright © 2012-2016, Eric de La Rochette.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the copyright holders.

Contact


Since version 1.3, the zdGravatarURL project is hosted by GitHub at this URL: http://github.com/ericdlr/zdgravatarurl. For any question about zdGravatarURL, if you find a bug in zdGravatarURL or an error in this documentation, please report it with our online bug report form.

gravatarurl/home.txt · Last modified: 2016/09/02 12:35 (external edit)