Method: MoesifApi::HttpClient#post

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

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

Get a POST HttpRequest object.

Parameters:

  • The (String)

    URL to send the request to.

  • The (Hash, Optional)

    headers for the HTTP Request.

  • The (Hash, Optional)

    parameters for the HTTP Request.

  • Username (String, Optional)

    for Basic Auth requests.

  • Password (String, Optional)

    for Basic Auth requests.



45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/moesif_api/http/http_client.rb', line 45

def post(query_url,
         headers: nil,
         parameters: nil,
         username: nil,
         password: nil)
  return HttpRequest.new(HttpMethodEnum::POST,
                         query_url,
                         headers: headers,
                         parameters: parameters,
                         username: username,
                         password: password)
end