SendBindReward
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see SendBindReward for Unreal Engine SDK.
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
Parameter | Type | Description |
---|---|---|
event_id | string | Reward event ID phone:110000 email:110001 |
extraJson | string | Extended 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", "{}");