Module: Drip::Client::Conversions
- Included in:
- Drip::Client
- Defined in:
- lib/drip/client/conversions.rb
Instance Method Summary collapse
-
#conversion(id) ⇒ Object
Public: Fetch a conversion.
-
#conversions(options = {}) ⇒ Object
Public: Fetch all conversions.
Instance Method Details
#conversion(id) ⇒ Object
Public: Fetch a conversion.
id - Required. The String id of the conversion
Returns a Drip::Response. See https://www.getdrip.com/docs/rest-api#conversions
26 27 28 |
# File 'lib/drip/client/conversions.rb', line 26 def conversion(id) make_json_api_request :get, "v2/#{account_id}/goals/#{CGI.escape id.to_s}" 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 https://www.getdrip.com/docs/rest-api#conversions
16 17 18 |
# File 'lib/drip/client/conversions.rb', line 16 def conversions( = {}) make_json_api_request :get, "v2/#{account_id}/goals", end |