Module: Selligent::Client::CustomJourney

Included in:
Selligent::Client
Defined in:
lib/selligent/client/custom_journey.rb

Overview

Implements the custom journeys endpoints

/organizations/:organization/journeys/custom/:api_name/entrypoints/:entrypoint_name/trigger

Instance Method Summary collapse

Instance Method Details

#trigger_custom_journey(api_name, entrypoint_name, input) ⇒ Object

Trigger execution of a custom journey

The input has the following shape: Please note that parameter_values will differ per journey

{

"user_id": 0,
"parameter_values": {
   "catawiki_id": Interger,
   "bid_timestamp": String
}

}

Parameters:

  • user_id (Integer)

    Internal Selligent user ID. Sent as 0 by default.

  • parameter_values (Hash)

    The input data in the format provided by the CRM team.



24
25
26
# File 'lib/selligent/client/custom_journey.rb', line 24

def trigger_custom_journey(api_name, entrypoint_name, input)
  post "#{base_url}/journeys/custom/#{api_name}/entrypoints/#{entrypoint_name}/trigger", input
end