From 25459d890b7d879e83668bba6c3c56cb9dffb0fa Mon Sep 17 00:00:00 2001 From: skywalker Date: Thu, 6 Jul 2023 15:08:37 +0800 Subject: [PATCH 1/4] use username --- manual/python/account.md | 4 ++-- manual/python/context.md | 2 +- manual/python/notifications.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/manual/python/account.md b/manual/python/account.md index cfedf0d..0061e09 100644 --- a/manual/python/account.md +++ b/manual/python/account.md @@ -10,10 +10,10 @@ Use email/password to log in, if you want to call other APIs provided by Account ```python from seatable_api import Account -email = 'xiongxxx@xxx.com' +username = 'xiongxxx@xxx.com' password = 'xxxxxxx' server_url = 'https://cloud.seatable.cn/' -account = Account(email, password, server_url) +account = Account(username, password, server_url) account.auth() ``` diff --git a/manual/python/context.md b/manual/python/context.md index 56575dc..3b32815 100644 --- a/manual/python/context.md +++ b/manual/python/context.md @@ -9,5 +9,5 @@ context.server_url # Server URL, used to initialize Base context.api_token # API token for access a base context.current_table # The name of the table that the current user is viewing when the user runs a script manually context.current_row # When the user manually runs a script, the line where the cursor is currently located -context.current_user_id # The id of the user who runs the script manually +context.current_username # The id of the user who runs the script manually ``` diff --git a/manual/python/notifications.md b/manual/python/notifications.md index c8df590..2dfa2c6 100644 --- a/manual/python/notifications.md +++ b/manual/python/notifications.md @@ -5,7 +5,7 @@ Send a nofication message which can be toasted on web page to a user. ```python -base.send_toast_notification(user_id, msg, toast_type='success') +base.send_toast_notification(username, msg, toast_type='success') ``` * toast_type: one of "success", "warning", "danger" From 8d69112fd0181d98e89254152614ef86283ac58f Mon Sep 17 00:00:00 2001 From: AlexCXC <1223408988@qq.com> Date: Mon, 10 Jul 2023 13:08:23 +0800 Subject: [PATCH 2/4] add context.id_in_org --- manual/python/context.md | 1 + 1 file changed, 1 insertion(+) diff --git a/manual/python/context.md b/manual/python/context.md index 3b32815..01b34d0 100644 --- a/manual/python/context.md +++ b/manual/python/context.md @@ -10,4 +10,5 @@ context.api_token # API token for access a base context.current_table # The name of the table that the current user is viewing when the user runs a script manually context.current_row # When the user manually runs a script, the line where the cursor is currently located context.current_username # The id of the user who runs the script manually +context.id_in_org # The id of the user in organization ``` From 3a02e4664dc096a0985ae923bd4f9132cddcb693 Mon Sep 17 00:00:00 2001 From: Daniel Pan Date: Mon, 10 Jul 2023 17:20:44 +0800 Subject: [PATCH 3/4] Update context.md --- manual/python/context.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manual/python/context.md b/manual/python/context.md index 01b34d0..6862adc 100644 --- a/manual/python/context.md +++ b/manual/python/context.md @@ -9,6 +9,6 @@ context.server_url # Server URL, used to initialize Base context.api_token # API token for access a base context.current_table # The name of the table that the current user is viewing when the user runs a script manually context.current_row # When the user manually runs a script, the line where the cursor is currently located -context.current_username # The id of the user who runs the script manually +context.current_username # The id of the user who runs the script manually (in old verison, it is called current_user_id) context.id_in_org # The id of the user in organization ``` From 53df6a5a0217b91303e9faa452aab03e26284ff7 Mon Sep 17 00:00:00 2001 From: Daniel Pan Date: Mon, 10 Jul 2023 17:26:02 +0800 Subject: [PATCH 4/4] Update context.md --- manual/python/context.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/manual/python/context.md b/manual/python/context.md index 6862adc..14c8eef 100644 --- a/manual/python/context.md +++ b/manual/python/context.md @@ -9,6 +9,8 @@ context.server_url # Server URL, used to initialize Base context.api_token # API token for access a base context.current_table # The name of the table that the current user is viewing when the user runs a script manually context.current_row # When the user manually runs a script, the line where the cursor is currently located -context.current_username # The id of the user who runs the script manually (in old verison, it is called current_user_id) -context.id_in_org # The id of the user in organization +context.current_username # The System ID of the user who runs the script manually (in old verison, it is called current_user_id) +context.id_in_org # The id of the user in the team, it can be set by the team admin via Web UI ``` + +