1.0.5 • Published 5 years ago

google-profile-from-email v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Email-Profile

Provides google id , name, photo url, album url from email address.

Example

var emailToProfile = require("google-profile-from-email");
emailToProfile.getProfile("abc@gmail.com",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'
    }