Provides Gravatar API. For use with Meteor Belt applications
Meteor Belt Gravatar can be installed with Meteorite. From inside a Meteorite-managed app:
$ mrt add belt-gravatar
In version v0.2.x
the api has changed.
Belt.Gravatar
is now Gravatar
var params = {
secure: true, // https ?
d: encodeURIComponent('http://example.org'), // defalut
s: 200, // size
r: 'pg' // rating
};
var url = Gravatar.urlFromEmail('[email protected]', params);
test.equal(url, 'https://www.gravatar.com/avatar/44e00c6d4a1deab14c40c00c89844cac?d=http%3A%2F%2Fexample.org&s=200&r=pg');