From 6706b6c033ec633472d4dae0a920c9b373731957 Mon Sep 17 00:00:00 2001 From: zhaojj11 <26586269+zhaojj11@users.noreply.github.com> Date: Wed, 13 Nov 2024 10:57:56 +0800 Subject: [PATCH] docs: format user id description (#1272) * docs: format user id description * docs: format user id description --------- Co-authored-by: zhaojunjie --- .../sdk/tapdb/sdk/client-side-integration.mdx | 17 ++++++----------- .../sdk/tapdb/sdk/client-side-integration.mdx | 15 +++++---------- .../sdk/tapdb/sdk/client-side-integration.mdx | 15 +++++---------- 3 files changed, 16 insertions(+), 31 deletions(-) diff --git a/cn/docs/sdk/tapdb/sdk/client-side-integration.mdx b/cn/docs/sdk/tapdb/sdk/client-side-integration.mdx index bd99f184f..da0de4e8a 100644 --- a/cn/docs/sdk/tapdb/sdk/client-side-integration.mdx +++ b/cn/docs/sdk/tapdb/sdk/client-side-integration.mdx @@ -392,6 +392,12 @@ TapTapSDK.initWith(options) 在重启应用或调用清除账号 ID( `clearUser` )前,上报的事件都会带有该账号 ID。 +| 字段 | 可为空 | 说明 | +|------------|-----|---------------------------------------------------------------------------------------| +| userId | 否 | 账号的唯一字符串,字符串长度不大于 160,只能包含数字、大小写字母、下划线(`_`)、短横(`-`)、加号(`+`)、正斜线(`/`)、等号(`=`)、英文句号(`.`)、英文逗号(`,`)、英文冒号(`:`)
开发者需要保证不同账号的 `userId` 均不相同。 | +| properties | 是 | 账号登录( `user_login` )的事件属性 | + + <> @@ -409,11 +415,6 @@ string properties = dict.toJson(); TapTapEvent.SetUserID(userId, properties); ``` -| 字段 | 可为空 | 说明 | -|------------|-----|---------------------------------------------------------------------------------------| -| userId | 否 | 账号的唯一字符串,字符串长度不大于 160,只能包含数字、大小写字母、下划线(`_`)、短横(`-`)、加号(`+`)、正斜线(`/`)、等号(`=`)、英文句号(`.`)、英文逗号(`,`)、英文冒号(`:`)
开发者需要保证不同账号的 `userId` 均不相同。 | -| properties | 是 | 账号登录( `user_login` )的事件属性 | - <> @@ -457,12 +458,6 @@ var properties = [String: Any]() properties["currentPoints"] = 10 TapTapEvent.setUserID(userId, properties: properties) ``` - -| 字段 | 可为空 | 说明 | -|------------|-----|--------------------------------------------------------------------------------------| -| userId | 否 | 账号的唯一字符串,字符串长度不大于 256,只能包含数字、大小写字母、下划线(`_`)、短横(`-`)
开发者需要保证不同账号的 `userId` 均不相同 | -| properties | 是 | 账号登录( `user_login` )的事件属性 -
diff --git a/hk/docs/sdk/tapdb/sdk/client-side-integration.mdx b/hk/docs/sdk/tapdb/sdk/client-side-integration.mdx index bd99f184f..f5294fa5d 100644 --- a/hk/docs/sdk/tapdb/sdk/client-side-integration.mdx +++ b/hk/docs/sdk/tapdb/sdk/client-side-integration.mdx @@ -392,6 +392,11 @@ TapTapSDK.initWith(options) 在重启应用或调用清除账号 ID( `clearUser` )前,上报的事件都会带有该账号 ID。 +| 字段 | 可为空 | 说明 | +|------------|-----|---------------------------------------------------------------------------------------| +| userId | 否 | 账号的唯一字符串,字符串长度不大于 160,只能包含数字、大小写字母、下划线(`_`)、短横(`-`)、加号(`+`)、正斜线(`/`)、等号(`=`)、英文句号(`.`)、英文逗号(`,`)、英文冒号(`:`)
开发者需要保证不同账号的 `userId` 均不相同。 | +| properties | 是 | 账号登录( `user_login` )的事件属性 | + <> @@ -409,11 +414,6 @@ string properties = dict.toJson(); TapTapEvent.SetUserID(userId, properties); ``` -| 字段 | 可为空 | 说明 | -|------------|-----|---------------------------------------------------------------------------------------| -| userId | 否 | 账号的唯一字符串,字符串长度不大于 160,只能包含数字、大小写字母、下划线(`_`)、短横(`-`)、加号(`+`)、正斜线(`/`)、等号(`=`)、英文句号(`.`)、英文逗号(`,`)、英文冒号(`:`)
开发者需要保证不同账号的 `userId` 均不相同。 | -| properties | 是 | 账号登录( `user_login` )的事件属性 | - <> @@ -458,11 +458,6 @@ properties["currentPoints"] = 10 TapTapEvent.setUserID(userId, properties: properties) ``` -| 字段 | 可为空 | 说明 | -|------------|-----|--------------------------------------------------------------------------------------| -| userId | 否 | 账号的唯一字符串,字符串长度不大于 256,只能包含数字、大小写字母、下划线(`_`)、短横(`-`)
开发者需要保证不同账号的 `userId` 均不相同 | -| properties | 是 | 账号登录( `user_login` )的事件属性 -
diff --git a/hk/i18n/en/docusaurus-plugin-content-docs/current/sdk/tapdb/sdk/client-side-integration.mdx b/hk/i18n/en/docusaurus-plugin-content-docs/current/sdk/tapdb/sdk/client-side-integration.mdx index 2a7c70e00..8d12b2688 100644 --- a/hk/i18n/en/docusaurus-plugin-content-docs/current/sdk/tapdb/sdk/client-side-integration.mdx +++ b/hk/i18n/en/docusaurus-plugin-content-docs/current/sdk/tapdb/sdk/client-side-integration.mdx @@ -388,6 +388,11 @@ After calling, an account login (`user_login`) event will be reported, and the ` Before restarting the application or calling clear account ID (`clearUser`), events reported will carry this account ID. +| Field | Nullable | Description | +|------------|----------|---------------------------------------------------------------------------------------------| +| userId | No | A unique string for the account, with a length of no more than 160, can only contain numbers, uppercase and lowercase letters, underscores (`_`), hyphens (`-`), plus signs (`+`), forward slashes (`/`), equal signs (`=`), periods (`.`), commas (`,`), colons (`:`). Developers need to ensure that `userId` is different for different accounts. | +| properties | Yes | Event properties for account login (`user_login`) | + <> @@ -405,11 +410,6 @@ string properties = dict.toJson(); TapTapEvent.SetUserID(userId, properties); ``` -| Field | Nullable | Description | -|------------|----------|---------------------------------------------------------------------------------------------| -| userId | No | A unique string for the account, with a length of no more than 160, can only contain numbers, uppercase and lowercase letters, underscores (`_`), hyphens (`-`), plus signs (`+`), forward slashes (`/`), equal signs (`=`), periods (`.`), commas (`,`), colons (`:`). Developers need to ensure that `userId` is different for different accounts. | -| properties | Yes | Event properties for account login (`user_login`) | - <> @@ -454,11 +454,6 @@ properties["currentPoints"] = 10 TapTapEvent.setUserID(userId, properties: properties) ``` -| Field | Nullable | Description | -|------------|----------|----------------------------------------------------------------------------------------------| -| userId | No | A unique string for the account, with a length of no more than 256, can only contain numbers, uppercase and lowercase letters, underscores (`_`), hyphens (`-`). Developers need to ensure that `userId` is different for different accounts. | -| properties | Yes | Event properties for account login (`user_login`) | -