Services
Ratings and Badges
Badges and Links
You can include Rapleaf badge images and links to Rapleaf profiles on your webpages without having to use the conventional API:
-
Start with the email address corresponding to the badge or profile link you want to construct.
dummy@rapleaf.com
-
Generate the SHA1 hash of the email address. (The email address must be put into lower case before it is hashed.)
1147e414eec8b785fb760f13f7890a767ffaef6e
-
Contruct a URL to the badge image: http://www.rapleaf.com/i?h=#{hashed_email}:
http://www.rapleaf.com/i?h=1147e414eec8b785fb760f13f7890a767ffaef6e
-
Contruct a URL to the profile: http://www.rapleaf.com/p?h=#{hashed_email}:
http://www.rapleaf.com/p?h=1147e414eec8b785fb760f13f7890a767ffaef6e
-
Putting it all together, you can create a badge image that links to the Rapleaf profile. You can do this for any email address without having to send the actual email address down to your users' browsers!
<a href="http://www.rapleaf.com/p?h=1147e414eec8b785fb760f13f7890a767ffaef6e"> <img src="http://www.rapleaf.com/i?h=1147e414eec8b785fb760f13f7890a767ffaef6e"> </a>
Invalid and unknown email hashes
Rapleaf will return non-member images, and unfound profile pages when it receives invalid or unknown email hashes, for example:
- Image URL: http://www.rapleaf.com/i?h=xxxxxxxx
- Profile URL: http://www.rapleaf.com/p?h=xxxxxxxx
