From 490f36fcd84dedf23ccbba4671abd5161ed928e4 Mon Sep 17 00:00:00 2001 From: Julian Coutu Date: Fri, 18 Mar 2011 00:24:42 -0400 Subject: [PATCH] Fixes scope issue on google contacts --- lib/contacts/google.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/contacts/google.rb b/lib/contacts/google.rb index 1c34334..40afd4d 100644 --- a/lib/contacts/google.rb +++ b/lib/contacts/google.rb @@ -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) @@ -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}