Playbasis Livefeed API
Methods
-
<static> commentActivity(activityId, playerId, message)
-
Comment acvitity
Parameters:
Name Type Description activityIdString activity id
playerIdString player id
messageString message
Returns:
Promise object
- Type
- Object
-
<static> detailActivity(activityId)
-
Get detail activity.
Parameters:
Name Type Description activityIdString activity id
Returns:
Promise object
- Type
- Object
-
<static> likeActivity(activityId, playerId)
-
Like activity
Parameters:
Name Type Description activityIdString activity id
playerIdString player id
Returns:
Promise object
- Type
- Object
-
<static> recentActivities(options)
-
Return recent activities.
Parameters:
Name Type Description optionsObject (optional) options as object.
It can include
{
player_id: String = required when 'mode'='player',
offset: Number = index of record to start,
limit: Number = amount of records returned,
last_read_activity_id: String = last activity id that you have read,
mode: String = "all" | "player",
event_type: String = event type i.e. "reward", "redeem", "action", "level"
}Returns:
Promise object
- Type
- Object