Skip to content

Commit 9ca49ec

Browse files
committed
remove add/delete apis
1 parent 005e074 commit 9ca49ec

File tree

2 files changed

+0
-66
lines changed

2 files changed

+0
-66
lines changed

manual/python/base.md

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,6 @@ base = Base(api_token, server_url)
2020
base.auth()
2121
```
2222

23-
## 以用户身份获取权限
24-
25-
使用表格的 API Token 和用户的登录信息获取一个 base 的访问权限
26-
27-
有一些 API 需要以用户身份使用,例如评论相关 API
28-
29-
* 邮箱和密码
30-
* 手机号和密码
31-
* login id 和密码
32-
* 用户名和密码
33-
34-
##### 例子
35-
36-
```python
37-
from seatable_api import Base, context
38-
39-
server_url = context.server_url or 'https://cloud.seatable.cn'
40-
api_token = context.api_token or 'c3c75dca2c369849455a39f4436147639cf02b2d'
41-
42-
login = 'xxx'
43-
password = 'yyy'
44-
45-
base = Base(api_token, server_url)
46-
base.auth_as_user(login, password)
47-
```
48-
4923
## Metadata
5024

5125
#### Get metadata

manual/python/comment.md

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -2,32 +2,6 @@
22

33
以下的方法可以对 Base 内评论进行操作
44

5-
**使用评论相关 API 时请先调用 Base.auth_as_user(login, password) 方法进行用户登录**
6-
7-
#### Add a comment
8-
9-
对某行评论
10-
11-
```python
12-
base.add_comment(table_id, row_id, comment)
13-
```
14-
15-
##### 例子
16-
17-
```python
18-
table_id = '0000'
19-
row_id = 'IN6FfRQLR9GAYX-6VHPvvA'
20-
comment = 'comment from seatable-api'
21-
22-
base.add_comment(table_id, row_id, comment)
23-
```
24-
25-
返回
26-
27-
```Python
28-
{'success': True}
29-
```
30-
315
#### Get the count number of a row's comments
326

337
获取某行评论数量
@@ -81,20 +55,6 @@ base.resolve_comment(comment_id)
8155
{'success': True}
8256
```
8357

84-
#### Delete a comment
85-
86-
删除评论
87-
88-
```Python
89-
base.delete_comment(comment_id)
90-
```
91-
92-
返回
93-
94-
```Python
95-
{'success': True}
96-
```
97-
9858
#### Get comments of a base within days
9959

10060
获取 Base 几天内的评论,不止某一行

0 commit comments

Comments
 (0)