Method: MoesifApi::HttpClient#get

Defined in:
lib/moesif_api/http/http_client.rb

#get(query_url, headers: nil, username: nil, password: nil) ⇒ Object

Get a GET HttpRequest object.

Parameters:

  • The (String)

    URL to send the request to.

  • The (Hash, Optional)

    headers for the HTTP Request.

  • Username (String, Optional)

    for Basic Auth requests.

  • Password (String, Optional)

    for Basic Auth requests.



28
29
30
31
32
33
34
35
36
37
# File 'lib/moesif_api/http/http_client.rb', line 28

def get(query_url,
        headers: nil,
        username: nil,
        password: nil)
  return HttpRequest.new(HttpMethodEnum::GET,
                         query_url,
                         headers: headers,
                         username: username,
                         password: password)
end