An unofficial API for Gravatar.com mostly for scrapping user data.
Install
$ npm install --save gravator
Usage
username
of a gravatar user is always foo
@example.com
'use strict';
const gravator = require('gravator');
gravator('username', 'options').then(res => {
console.log(res);
});
gravator('foo', 'hash').then(res => {
console.log(res);
})
API
gravator(username, options)
username
Type: string
options
Type: string
Options:
Example
gravator('matt', 'id').then(res => {
console.log(res);
});
-
hash
-
requestHash
-
profileUrl
-
preferredUsername
-
thumbnailUrl
-
photos
-
name
-
ims
-
displayName
-
aboutMe
-
currentLocation
-
emails
-
accounts
-
urls
Related
License
MIT © Rishi Giri