Skip to content

Commit

Permalink
Fixes scope issue on google contacts
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian Coutu authored and Julian Coutu committed Mar 18, 2011
1 parent 23eb9b4 commit 490f36f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/contacts/google.rb
Expand Up @@ -10,7 +10,7 @@ class Google < OAuthConsumer
:authorize_path => "/accounts/OAuthAuthorizeToken"
)

REQUEST_TOKEN_PARAMS = {'scope' => "https://www.google.com/m8/feeds/ http://www.google.com/m8/feeds/contacts"}
REQUEST_TOKEN_PARAMS = {'scope' => "https://www.google.com/m8/feeds/"}

def initialize(options={})
super(CONSUMER_OPTIONS, REQUEST_TOKEN_PARAMS)
Expand Down Expand Up @@ -72,7 +72,6 @@ def translate_parameters(params)
end

def parse_contacts(body)
puts body
document = Nokogiri::XML(body)
document.search('/xmlns:feed/xmlns:entry').map do |entry|
emails = entry.search('./gd:email[@address]').map{|e| e['address'].to_s}
Expand Down

0 comments on commit 490f36f

Please sign in to comment.