Home > Uncategorized > #AvatarAPI is now on #NPM for #NodeJS users

#AvatarAPI is now on #NPM for #NodeJS users

Screen Shot 2017-08-12 at 16.49.24

Let’s face it, not all your users bother with uploading a photo of themselves on your website, but it looks bland and boring when you just assign everyone with a placeholder image. AvatarAPI allows you get the real name and profile picture of your users from their email address. Great for giving that splash of colour and friendliness to your website.

We’ve just created an NPM package for the Avatar API so that NodeJS users can easily import the functionality into their apps.

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());
});

 

Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a comment