module Drip::Client::Conversions

Public Instance Methods

conversion(id) click to toggle source

Public: Fetch a conversion.

id - Required. The String id of the conversion

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

# File lib/drip/client/conversions.rb, line 24
def conversion(id)
  make_json_api_request :get, "v2/#{account_id}/goals/#{id}"
end
conversions(options = {}) click to toggle source

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

# File lib/drip/client/conversions.rb, line 14
def conversions(options = {})
  make_json_api_request :get, "v2/#{account_id}/goals", options
end