def get(resource_path, params = nil, accept = '*/*')
      if params
        response = @http_client[resource_path].get(params: params, accept: accept)
      else
        response = @http_client[resource_path].get(accept: accept)
      end
      Response.new(response)
    rescue => err
      raise communication_error err
    end
def get(resource_path, params = nil, accept = '*/*')
      if params
        response = @http_client[resource_path].get(params: params, accept: accept)
      else
        response = @http_client[resource_path].get(accept: accept)
      end
      Response.new(response)
    rescue => err
      raise communication_error err
    end
Generic Mailgun GET Handler

 @param [String] resource_path This is the API resource you wish to interact
 with. Be sure to include your domain, where necessary.
 @param [Hash] params This should be a standard Hash
 containing required parameters for the requested resource.
 @param [String] accept Acceptable Content-Type of the response body.
 @return [Mailgun::Response] A Mailgun::Response object.