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

 

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: