Method: Boxr::Client#user_events

Defined in:
lib/boxr/events.rb

#user_events(stream_position, stream_type: :all, limit: 800) ⇒ Object



4
5
6
7
8
9
# File 'lib/boxr/events.rb', line 4

def user_events(stream_position, stream_type: :all, limit: 800)
  query = {stream_position: stream_position, stream_type: stream_type, limit: limit}
  
  events, response = get(EVENTS_URI, query: query)
  Hashie::Mash.new({events: events["entries"], chunk_size: events["chunk_size"], next_stream_position: events["next_stream_position"]})
end