Class: Reattract::AppEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/reattract/resources/app_event.rb

Overview

/v1/customer_events

Class Method Summary collapse

Class Method Details

.create(event_name:, user_id:, payload: {}) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/reattract/resources/app_event.rb', line 7

def create(event_name:, user_id:, payload: {})
  request.post(
    body: {
      payload:              payload,
      event_name:           event_name,
      organization_user_id: user_id
    }
  )
end