Class: Hubspot::FormsConnection

Inherits:
Connection show all
Defined in:
lib/hubspot/connection.rb

Class Method Summary collapse

Methods inherited from Connection

delete_json, get_json, post_json, put_json

Class Method Details

.submit(path, opts) ⇒ Object



138
139
140
141
# File 'lib/hubspot/connection.rb', line 138

def self.submit(path, opts)
  url = generate_url(path, opts[:params], { base_url: 'https://forms.hubspot.com', hapikey: false })
  post(url, body: opts[:body], headers: { 'Content-Type' => 'application/x-www-form-urlencoded' })
end