Class: Brazify::User

Inherits:
Resource show all
Defined in:
lib/brazify/resources/user.rb

Class Method Summary collapse

Methods inherited from Resource

list_methods

Class Method Details

.delete(external_ids: [], user_aliases: [], braze_ids: []) ⇒ Object



4
5
6
7
8
9
10
11
12
13
# File 'lib/brazify/resources/user.rb', line 4

def delete(external_ids: [], user_aliases: [], braze_ids: [])
  post(
    path: '/users/delete',
    params: {
      external_ids: external_ids,
      user_aliases: user_aliases,
      braze_ids: braze_ids
    }
  )
end

.track(attributes: [], events: [], purchases: []) ⇒ Object



15
16
17
18
19
20
21
22
23
24
# File 'lib/brazify/resources/user.rb', line 15

def track(attributes: [], events: [], purchases: [])
  post(
    path: '/users/track',
    params: {
      attributes: attributes,
      events: events,
      purchases: purchases
    }
  )
end