SendBindReward
AndroidiOSWindows
If you were looking for the method for use with Unity, see SendBindReward for Unity SDK.
If you were looking for the method for use with Unity, see SendBindReward for Unity SDK.
Send first login reward to players. For more information, see First login rewards.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void SendBindReward(const FString eventId, const FString extraJson);
Input parameters
Parameter | Type | Description |
---|---|---|
eventId | FString | Reward event ID phone:110000 email:110001 |
extraJson | FString | 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 kMethodIDToolsSendBindReward
.
Code sample
UINTLSDKAPI::SendBindReward("110001", "{}");