Transaction Action of GS2-Friend
Specification of verify/consume/acquire transaction actions
VerifyAction
ConsumeAction
AcquireAction
Gs2Friend:UpdateProfileByUserId
Update profile with user ID
Actions for which quantity can be specified: NO
Reversible action: NO
| Type | Description | |
|---|---|---|
| namespaceName | string | Namespace name |
| userId | string | Set #{userId} to replace the currently logged in user ID. |
| publicProfile | string | Public profile |
| followerProfile | string | Profile for followers |
| friendProfile | string | Profile for friends |
| timeOffsetToken | string | Time offset token |
{
"action": "Gs2Friend:UpdateProfileByUserId",
"request": {
"namespaceName": "[string]Namespace name",
"userId": "[string]User Id",
"publicProfile": "[string]Public profile",
"followerProfile": "[string]Profile for followers",
"friendProfile": "[string]Profile for friends",
"timeOffsetToken": "[string]Time offset token"
}
}action: Gs2Friend:UpdateProfileByUserId
request:
namespaceName: "[string]Namespace name"
userId: "[string]User Id"
publicProfile: "[string]Public profile"
followerProfile: "[string]Profile for followers"
friendProfile: "[string]Profile for friends"
timeOffsetToken: "[string]Time offset token"transaction.service("friend").acquire.update_profile_by_user_id({
namespaceName="[string]Namespace name",
userId="[string]User Id",
publicProfile="[string]Public profile",
followerProfile="[string]Profile for followers",
friendProfile="[string]Profile for friends",
timeOffsetToken="[string]Time offset token",
})