Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Requesting Google Contacts in Ruby using Omniauth

I have successfully authenticated against Google using Omniauth, and now have session token and secret in my Authentication record, with :scope => "https://www.google.com/m8/feeds/".

I can't figure out how to get access to the user's contacts list using these credentials rather than asking the user for a password.

Is there a Gem for doing this? I tried gdata, but am still stuck figuring out what method to use to request the contact feed, and how to supply the token information. Anyone has dealt with this before and can help me out?

like image 981
CoupDeMistral Avatar asked Feb 11 '26 03:02

CoupDeMistral


1 Answers

There's a good answer here. The authentication will be handled by OmniAuth, so you can essentially skip down to the contacts request.

like image 186
Oli Young Avatar answered Feb 16 '26 17:02

Oli Young



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!