Transaction Action of GS2-AdReward

ConsumeAction

Gs2AdReward:ConsumePointByUserId

Consume Point by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
userIdstring
Set #{userId} to replace the currently logged in user ID.
pointlongConsume Points
{
    "action": "Gs2AdReward:ConsumePointByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "point": "[long]Consume Points"
    }
}
action: Gs2AdReward:ConsumePointByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  point: "[long]Consume Points"

AcquireAction

Gs2AdReward:AcquirePointByUserId

Acquire Point by specifying user ID

Actions for which quantity can be specified: NO

Reversible action: YES

TypeDescription
namespaceNamestringNamespace name
userIdstringSet #{userId} to replace the currently logged in user ID.
pointlongAcquire Points
{
    "action": "Gs2AdReward:AcquirePointByUserId",
    "request": {
        "namespaceName": "[string]Namespace name",
        "userId": "[string]User Id",
        "point": "[long]Acquire Points"
    }
}
action: Gs2AdReward:AcquirePointByUserId
request:
  namespaceName: "[string]Namespace name"
  userId: "[string]User Id"
  point: "[long]Acquire Points"