Class: HubspotClient::Client::Form

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/hubspot_client/client/form.rb

Constant Summary collapse

BASE_PATH_V3 =
'/marketing/v3/forms/'

Class Method Summary collapse

Class Method Details

.all_forms(limit: 20) ⇒ Object



11
12
13
14
# File 'lib/hubspot_client/client/form.rb', line 11

def self.all_forms(limit: 20)
  url = "#{BASE_PATH_V3}?limit=#{limit}"
  get(url, headers: headers)
end

.headersObject



16
17
18
19
# File 'lib/hubspot_client/client/form.rb', line 16

def self.headers
  { Authorization: "Bearer #{HubspotClient.configuration.access_token}",
    'Content-Type': 'application/json' }
end