How to get all contacts of a loggedin user,i added request permission to access google contacts
requestPermissions: {
facebook: ['email', 'user_friends','read_friendlists'],
google:['https://www.google.com/m8/feeds']
},
I don't know how to access contacts,i tried to google it but i'm confused with the results.
Does anyone know how to do this?
can anyone point me to the answer?
I really appreciate any help
I Just used
google-contacts
atmosphere package and write the following function in server side and it worked for meTo do this,you need a
refreshToken
from google,by default meteor will not get it for you.Add the following code in client side to get the
refreshtoken
(requestOfflineToken)NOTE: To work with contacts API you need to enable contacts api in your google console.
Hope it may help someone out there.