Module: Drip::Client::Forms

Included in:
Drip::Client
Defined in:
lib/drip/client/forms.rb

Instance Method Summary collapse

Instance Method Details

#form(id) ⇒ Object

Public: Fetch a form.

id - Required. The String id of the form

Returns a Drip::Response. See https://www.getdrip.com/docs/rest-api#forms



22
23
24
# File 'lib/drip/client/forms.rb', line 22

def form(id)
  make_json_api_request :get, "v2/#{}/forms/#{CGI.escape id.to_s}"
end

#formsObject

Public: Fetch all forms.

Returns a Drip::Response. See https://www.getdrip.com/docs/rest-api#forms



12
13
14
# File 'lib/drip/client/forms.rb', line 12

def forms
  make_json_api_request :get, "v2/#{}/forms"
end