How to change Google+ image using google api Javascript SDK

I am trying to create a Google+ app that loads a profile picture. Using the JavaScript SDK API. Is there a way to upload a Google+ profile picture?

+3


source to share


1 answer


There is no Google+ api available for developers. If you are running on your own domain, you can do this using the Google Directory Api.



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

AdminDirectory.Users.Photos.update(newPhoto, "user@myDomain.org");

      

+1


source







All Articles