Class: MemoriClient::Backend::V2::ActionLog

Inherits:
Resource show all
Defined in:
lib/memori_client/backend/v2/action_log.rb

Overview

Generated on 2025-01-27 16:56:15 +0000

Class Method Summary collapse

Methods inherited from Resource

build_url

Methods inherited from Resource

build_arguments, build_url, exec_http_request, validate_payload!

Class Method Details

.get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil) ⇒ Object

‘GET /api/v2/MemoriActionLogs/strToken/strMemoriID/strDateFrom/strDateTo`

Gets the Action Log objects for a specific Memori in a specific date interval.

‘get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)`

Parameters:

  • strToken (string)

    The login token. required

  • strMemoriID (string)

    The ID of the Memori object. required

  • strDateFrom (string) (defaults to: nil)

    The optional begin of the date interval, in the format yyyyMMddHHmmssfff. optional

  • strDateTo (string) (defaults to: nil)

    The optional end of the date interval, in the format yyyyMMddHHmmssfff. optional



37
38
39
40
41
# File 'lib/memori_client/backend/v2/action_log.rb', line 37

def self.get_memori_action_logs(strToken:, strMemoriID:, strDateFrom: nil, strDateTo: nil)
  args = build_arguments(binding)

  exec_http_request('get', '/api/v2/MemoriActionLogs/{strToken}/{strMemoriID}/{strDateFrom}/{strDateTo}', **args)
end

.get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil) ⇒ Object

‘GET /api/v2/UserActionLogs/strToken/strUserID/strDateFrom/strDateTo`

Gets the Action Log objects for a specific User in a specific date interval.

‘get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)`

Parameters:

  • strToken (string)

    The login token. required

  • strUserID (string)

    The ID of the User object. required

  • strDateFrom (string) (defaults to: nil)

    The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional

  • strDateTo (string) (defaults to: nil)

    The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff. optional



17
18
19
20
21
# File 'lib/memori_client/backend/v2/action_log.rb', line 17

def self.get_user_action_logs(strToken:, strUserID:, strDateFrom: nil, strDateTo: nil)
  args = build_arguments(binding)

  exec_http_request('get', '/api/v2/UserActionLogs/{strToken}/{strUserID}/{strDateFrom}/{strDateTo}', **args)
end