Module: Drip::Client::Conversions

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

Instance Method Summary collapse

Instance Method Details

#conversion(id) ⇒ Object

Public: Fetch a conversion.

id - Required. The String id of the conversion

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



24
25
26
# File 'lib/drip/client/conversions.rb', line 24

def conversion(id)
  make_json_api_request :get, "v2/#{}/goals/#{id}"
end

#conversions(options = {}) ⇒ Object

Public: Fetch all conversions.

options - A Hash of options.

- status - Optional. Filter by one of the following statuses:
           active, disabled, or all. Defaults to all.

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



14
15
16
# File 'lib/drip/client/conversions.rb', line 14

def conversions(options = {})
  make_json_api_request :get, "v2/#{}/goals", options
end