Kamal Kumar
Kamal Kumar

Reputation: 346

How to change google plus profile picture using google api Javascript SDK

I'm trying to build a Google+ App which uploads profile picture Using API JavaScript SDK. Is there any way to upload Google+ profile picture?

Upvotes: 3

Views: 163

Answers (1)

Spencer Easton
Spencer Easton

Reputation: 5782

There is no Google+ api that is available to developers. If you are working within your own domain you can do this with the Google Directory Api.

var newPhoto = AdminDirectory.newUserPhoto().photoData = (Utilities.base64Encode(photoBlob));

AdminDirectory.Users.Photos.update(newPhoto, "[email protected]");

Upvotes: 1

Related Questions