Skip to main content

Set Additional Gift Pack Info ExtraJson (SetRewardExtraJson)

AndroidiOSWindows
If you are using Unreal Engine, please refer to Unreal Engine SDK's SetRewardExtraJson.

When entering the lobby after the character has been created, first call the SetRewardExtraJson API, then call the SendBindReward API.The SDK internally determines whether the player can claim the gift pack.

For details about binding gifts and first login gifts, see Gift Package Configuration.

Function Definition

public static string SetRewardExtraJson(string extraJson = "{}")

Input Parameters

ParametersTypeExplanation
extraJsonStringExtension field of the gift pack used for matching IDIP rules
For more information, see SendBindReward API Extra Parameter JSON.

Code sample

INTLAPI.SetRewardExtraJson("{}");