node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

avatar-api

avatar-api

Get a user's real name and photo from their email address. A Username and password is required, which you can get from http://www.avatarapi.com

Installation

npm install avatar-api --save

Usage

var api = require('avatar-api');
 
api.AvatarAPI("jenny.smith@gmail.com","***Your Username***","***Your Password****",function(data){
  console.log(data.profile.Name.toString());
  console.log(data.profile.Image.toString());
});

Dependencies

  • xml2js: Simple XML to JavaScript object converter.

Dev Dependencies

A Username and password is required, which you can get from http://www.avatarapi.com

License

ISC