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..14c8eef 100644 --- a/manual/python/context.md +++ b/manual/python/context.md @@ -9,5 +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_user_id # The id of the user who runs the script manually +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 ``` + + 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"