class Mailgun::Client

def post(resource_path, data, headers = {})

Returns:
  • (Mailgun::Response) - A Mailgun::Response object.

Parameters:
  • headers (Hash) -- Additional headers to pass to the resource.
  • data (Hash) -- This should be a standard Hash
  • resource_path (String) -- This is the API resource you wish to interact
def post(resource_path, data, headers = {})
  response = @http_client.post(resource_path, data, headers)
  Response.new(response)
rescue => err
  raise communication_error err
end