lib/predictionio/event_client.rb
# :category: Asynchronous Methods
# Asynchronously request to record an action on an item and return a
# PredictionIO::AsyncResponse object immediately.
#
# Corresponding REST API method: POST /events.json
#
# See also #record_user_action_on_item.
:category: Asynchronous Methods
Asynchronously request to record an action on an item and return a
PredictionIO::AsyncResponse object immediately.

Corresponding REST API method: POST /events.json


: category : Asynchronous Methods Asynchronously request to record an action on an item and return a PredictionIO :: AsyncResponse object immediately . Corresponding REST API method : POST / events . json
def arecord_user_action_on_item(action, uid, iid, optional = {})
      optional['targetEntityType'] = 'item'
      optional['targetEntityId'] = iid
      acreate_event(action, 'user', uid, optional)
    end
def arecord_user_action_on_item ( action , uid , iid , optional = { } ) optional [ 'targetEntityType' ] = 'item' optional [ 'targetEntityId' ] = iid acreate_event ( action , 'user' , uid , optional ) end
:category: Asynchronous Methods
Asynchronously request to record an action on an item and return a
PredictionIO::AsyncResponse object immediately.
: category : Asynchronous Methods Asynchronously request to record an action on an item and return a PredictionIO :: AsyncResponse object immediately .
action
<not_specific>
uid
<not_specific>
iid
<not_specific>
optional
<not_specific>