google-profile-from-email
v1.0.5
Published
Provides google id , name, photo url, album url from email address. ## Example ```js var emailToProfile = require("google-profile-from-email"); emailToProfile.getProfile("[email protected]",function (err, profileData) { if(err){ console.log(err);
Downloads
5
Maintainers
Readme
Email-Profile
Provides google id , name, photo url, album url from email address.
Example
var emailToProfile = require("google-profile-from-email");
emailToProfile.getProfile("[email protected]",function (err, profileData) {
if(err){
console.log(err);
}
else{
console.log(profileData);
}
});
Response
Error:
1.
{
"statusCode":402,
"name":"ValidationError",
"message":"email is invalid"
}
2.
{
"statusCode":404,
"name":"NotFound",
"message":"no data found"
}
3.
{
"statusCode":502,
"name":"InternalError",
"message":"internal server error occurred. Refer the logs for full details"
}
Success:
{ profileId: 'PROFILE_ID',
album: 'ALBUM_URL',
name: 'NAME',
photo: 'PHOTO_URL'
}