Transaction Action of GS2-Friend
Specification of verify/consume/acquire transaction actions
AcquireAction
Gs2Friend:UpdateProfileByUserId
Update profile by specifying a user ID
Whether the action allows quantity specification: NO
Whether the action is reversible: NO
| Type | Condition | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|---|
| namespaceName | string | ✓ | ~ 128 chars | Namespace name Namespace-specific name. Specified using alphanumeric characters, hyphens (-), underscores (_), and periods (.). | ||
| userId | string | ✓ | ~ 128 chars | User ID Set #{userId} to replace the currently logged in user ID. | ||
| publicProfile | string | ~ 1024 chars | Public profile | |||
| followerProfile | string | ~ 1024 chars | Profile for followers | |||
| friendProfile | string | ~ 1024 chars | Profile for friends | |||
| timeOffsetToken | string | ~ 1024 chars | 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",
})