Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

Commit

Permalink
Merge pull request #77 from seatable/use-username
Browse files Browse the repository at this point in the history
use username
  • Loading branch information
freeplant committed Jul 14, 2023
2 parents 8e47be0 + 53df6a5 commit 718d76a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manual/python/account.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
```

Expand Down
5 changes: 4 additions & 1 deletion manual/python/context.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```


2 changes: 1 addition & 1 deletion manual/python/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 718d76a

Please sign in to comment.