dinesh singh
2012-May-11 13:13 UTC
Get user firstname; lastname in google api through authlogic-connect
Hello,
I am using authlogic-connect 0.0.6 version in ruby on rails. I am able
to get the google user email id, but not able to get the firstname and
lastname.
i am using the follwing code:
@google
||JSON.parse(token.get("https://www.googleapis.com/oauth2/v1/userinfo#profile").body)
however i read that if i add the scope in access token, we can get the
user profile detail. But i am not found any way, how i can do this.
My ruby version : 1.8.7 rails version : 2.3.11
Attachments:
http://www.ruby-forum.com/attachment/7376/profile_auth.rb
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
