Transaction Action of GS2-AdReward
VerifyAction
ConsumeAction
Gs2AdReward:ConsumePointByUserId
Consume Point by specifying user ID
Consumes points from the user. Subtracts a specific number of points from the specified user ID and returns the result.
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
point | long | Consume Points |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2AdReward:ConsumePointByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"point": "[long]Consume Points",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2AdReward:ConsumePointByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
point: "[long]Consume Points"
timeOffsetToken: "[string]Time offset token"
transaction.service("adReward").consume.consume_point_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
point="[long]Consume Points",
timeOffsetToken="[string]Time offset token",
})
AcquireAction
Gs2AdReward:AcquirePointByUserId
Acquire Point by specifying user ID
Adds a specific number of points to the specified user ID and returns the result.
Actions for which quantity can be specified: YES
Reversible action: YES
Type | Description | |
---|---|---|
namespaceName | string | Namespace name |
userId | string | Set #{userId} to replace the currently logged in user ID. |
point | long | Acquire Points |
timeOffsetToken | string | Time offset token |
{
"action": "Gs2AdReward:AcquirePointByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"point": "[long]Acquire Points",
"timeOffsetToken": "[string]Time offset token"
}
}
action: Gs2AdReward:AcquirePointByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
point: "[long]Acquire Points"
timeOffsetToken: "[string]Time offset token"
transaction.service("adReward").acquire.acquire_point_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
point="[long]Acquire Points",
timeOffsetToken="[string]Time offset token",
})