Method: Dnsimple::Client#post

Defined in:
lib/dnsimple/client.rb

#post(path, data = nil, options = {}) ⇒ HTTParty::Response

Make a HTTP POST request.

Parameters:

  • path (String)

    The path, relative to #base_url

  • data (Hash) (defaults to: nil)

    The body for the request

  • options (Hash) (defaults to: {})

    The query and header params for the request

Returns:

  • (HTTParty::Response)


119
120
121
# File 'lib/dnsimple/client.rb', line 119

def post(path, data = nil, options = {})
  execute :post, path, data, options
end