Method: WDA#get

Defined in:
lib/wda_lib.rb

#get(path, timeout = 60) ⇒ Object

HTTP methods for dealing with all supported motheds in FB WDA I don’t like to write such pieces of code, it removes all query params and headers, But as FB WDA is doing like this, this can simplify codes



93
94
95
96
97
98
99
# File 'lib/wda_lib.rb', line 93

def get(path, timeout = 60)
  if URI.parse(path).absolute?
    WDA.get(path, timeout: timeout)
  else
    WDA.get(@url + path, timeout: timeout)
  end
end