class Hubspot::FormsConnection

Public Class Methods

submit(path, opts) click to toggle source
# 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