lib/twitter/client/graph.rb in twitter4r-0.3.2 vs lib/twitter/client/graph.rb in twitter4r-0.5.0
- old
+ new
@@ -29,9 +29,9 @@
raise ArgumentError, "Invalid friend action provided: #{action}" unless @@GRAPH_URIS.keys.member?(action)
id = value.to_i unless value.nil? || value.is_a?(String)
id ||= value
id ||= @login
uri = "#{@@GRAPH_URIS[action]}.json"
- response = http_connect {|conn| create_http_get_request(uri, :id => id) }
+ response = rest_oauth_connect(:get, uri, :id => id)
JSON.parse(response.body)
end
end