logAction

fun logAction(eventCode: String, map: Map<String, Any>, success: () -> Unit, failed: (e: RakutenRewardAPIError) -> Unit)

Log Mission Action and send analytics event

Event code for Analytics SDK is expected, not the Mission Action code.
Analytics SDK event code and Mission Action code mapping can be configured in Rakuten Reward Developer Portal.

Rakuten Analytics SDK is expected. If not available, this API does not work.

If the mapping is found, analytics event is sent and mission action is logged.
If the mapping is not found, analytics event will be sent but mission action will not be logged.

Parameters

eventCode

Event code for Analytics SDK, should be configured in Rakuten Reward Developer Portal

map

Meta data for Analytics SDK

success

Success callback

failed

Failure callback