javascript - How to get Google contact images with Google contacts API? -
working google contacts api using node.js
i getting contacts except images google feed api
https://www.google.com/m8/feeds/photos/media/faizy04%40gmail.com/ya29.zaftncq6seue40gfqh5h8h91k8lo8bwvf50nugqkkmsd5fipwg9xvn5gehmyref_tk1xjzvrb9ubuw
for getting contacts have passed following scope passport.js
passport.authenticate('google', { scope : ['profile', 'email','https://www.google.com/m8/feeds'] })
everything working fine.
now want images of related contacts.
do need pass else parameter in scope variable or need send get request that?
you need send 1 authenticated get request each contact image want retrieve. contacts image endpoint in same authorization scope 1 used contacts.
for more information, refer to: retrieving contact's photo in api docs.
Comments
Post a Comment