scotthovestadt / gigya

Gigya JavaScript REST SDK
MIT License
37 stars 62 forks source link

Adding the call to update profile photos. example call in commit desc #5

Closed luckpo closed 7 years ago

luckpo commented 7 years ago

Just added the call to update profile the profile pic

You will have to base64 encode the img before. example call :

require('fs').readFile('./profile_pic.jpg', function(err, data){ var base64Image = data.toString('base64'); gigyaClient.accounts .updateProfileImage({ UID: 'XXX', photoBytes: base64Image

})

scotthovestadt commented 7 years ago

Thanks!