Skip to main content

SendBindReward

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see SendBindReward for Unreal Engine SDK.

Send first login reward to players. For more information, see First login rewards.

Function definition

public static void SendBindReward(string event_id, string extraJson = "{}");

Input parameters

ParameterTypeDescription
event_idstringReward event ID
phone:110000
email:110001
extraJsonstringExtended field for reward which matches the IDIP rules
For more information, see ExtraJson - Additional Parameter JSON String

ExtraJson - Additional Parameter JSON String

The extra fields for rewards must match the rules of IDIP, and the format is:

{
"area_id":xx, //int type
"role_id":"xx", //string type
"plat_id":×x, //int type
"zone_id":×× //int type
}

Observers

The callback processing interface is BindRewardResultObserver. The callback data structure is BindRewardResult.

The callback methodID is INTL_TOOLS_SEND_BINDREWARD.

Code sample

LevelInfinite.SendBindReward("110001", "{}");