Class: Hubspot::FormsConnection
- Inherits:
-
Connection
- Object
- Connection
- Hubspot::FormsConnection
- 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
126 127 128 129 |
# File 'lib/hubspot/connection.rb', line 126 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 |