You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a832f8b
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,18 @@
2
2
3
3
Welcome to the SeaTable Developer's Repository! 🌊🔍✨
4
4
5
-
This repository serves as the foundational source for the SeaTable Developer's Manual available at https://developer.seatable.com. The developer manual is generated with the help of MkDocs Material and is a comprehensive guide and resource hub for developers aiming to build extensions, scripts, plugins, or custom applications within SeaTable.
5
+
This repository serves as the foundational source for the SeaTable Developer's Manual available at https://developer.seatable.com. The Developer Manual is generated with the help of MkDocs Material and is a comprehensive guide and resource hub for developers aiming to build extensions, scripts, plugins, or custom applications within SeaTable.
6
6
7
7
## Content
8
8
9
9
-**Introducion**: Explanation of fundamental approaches and SeaTable basic concepts.
10
10
-**Scripting in SeaTable**: Detailed instructions on scripting with a complete function overview and ready-to-use scripts.
11
11
-**Plugin Development**: Step-by-step guide to developing your own SeaTable plugin.
12
-
-**Client API's**: List of ready-to-use API clients for various programming languages like JavaScript, Python, and PHP.
12
+
-**Client APIs**: List of ready-to-use API clients for various programming languages like JavaScript, Python, and PHP.
13
13
14
14
## How to participate
15
15
16
-
Please fell free to particiate in the developer manual by creating pull requests. Before you do this, please test your changes in a local copy of this manual. Here is how you can do this.
16
+
Please fell free to participate in the Developer Manual by creating pull requests. Before you do this, please test your changes in a local copy of this manual. Here is how you can do this.
17
17
18
18
> :warning: Docker is required
19
19
>
@@ -30,7 +30,7 @@ git checkout -b <new_branch>
30
30
# please replace <new_branch> with something short like "add_python_example"
31
31
```
32
32
33
-
### Step 2: Generate your local version of the developer manual
33
+
### Step 2: Generate your local version of the Developer Manual
34
34
35
35
We developed a tiny bash script to generate the local copy of the manual.
Thanks to seatable's full API, virtually anything can be controlled with any programming language.
3
+
Thanks to SeaTable's full API, virtually anything can be controlled with any programming language.
4
4
5
-
On [https://api.seatable.com](https://api.seatable.com) you can find all available API commands and sample commands for different programming languages.
5
+
On the [API Reference](https://api.seatable.com) you can find all available API commands and sample codes for different programming languages.
6
6
7
7
For a few programming languages there are already ready-to-use client APIs classes that do some of the work for you. These are presented in this part of the documentation.
Copy file name to clipboardExpand all lines: docs/clients/javascript/javascript_api.md
+28-29Lines changed: 28 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
-
# JavaScript Client
1
+
# JavaScript client
2
2
3
-
The SeaTable JavaScript Client encapsulates SeaTable Server Restful API. You can call it in your front-end page or Node.js program.
3
+
The SeaTable JavaScript client encapsulates SeaTable Server Restful API. You can call it in your front-end page or Node.js program.
4
4
5
-
!!! danger "JavaScript API cannot be used for scripts in SeaTable bases. For script programming with Javascript, there is a [separate chapter](/scripts/) in this documentation."
5
+
!!! warning "Two different clients"
6
+
JavaScript API cannot be used for scripts in SeaTable bases. For script programming with JavaScript, there is a [separate chapter](../../scripts/javascript/objects/index.md) in this documentation.
6
7
7
-
Note, JavaScript API calls SeaTable Server Restful API, while scripts in SeaTable bases interact with the base loaded in the browser, so the APIs of the two are somewhat different.
8
+
Note that JavaScript API calls SeaTable Server Restful API, whereas scripts in SeaTable bases interact with the base loaded in the browser, so the APIs of the two are somewhat different.
8
9
9
10
## Installation
10
11
@@ -16,45 +17,43 @@ The source code of the JavaScript Client API is available at [GitHub](https://gi
16
17
17
18
## Reference
18
19
19
-
To use SeaTable APIs, you should first initialize a base object and call `base.auth()`. `base.auth()` is an async function, which needs to be executed in async functions. Other APIs all return a promise object. There are two ways to use them
20
+
To use SeaTable APIs, you should first initialize a base object and call `base.auth()`. `base.auth()` is an async function, which needs to be executed in async functions. Other APIs all return a promise object. There are two ways to use them:
20
21
21
-
The first way:
22
+
=== "First way using then"
22
23
23
-
```
24
-
base.listViews(tableName).then(views => {
25
-
// Use views to complete the requirements
26
-
}).catch(error => {
27
-
// Exception handling
28
-
})
29
-
```
24
+
```js
25
+
base.listViews(tableName).then(views => {
26
+
// Use views to complete the requirements
27
+
}).catch(error => {
28
+
// Exception handling
29
+
})
30
+
```
30
31
31
-
The second way:
32
+
=== "Second way using await"
32
33
33
-
```
34
-
try {
35
-
const views = await base.listViews(tableName);
36
-
// Use views to complete the requirements
37
-
} catch (error) {
38
-
// Exception handling
39
-
}
40
-
```
34
+
```js
35
+
try {
36
+
const views = await base.listViews(tableName);
37
+
// Use views to complete the requirements
38
+
} catch (error) {
39
+
// Exception handling
40
+
}
41
+
```
41
42
42
-
SeaTable API Errors
43
+
Here are the main SeaTable API errors you might encounter:
43
44
44
45
- 400 Params invalid
45
46
- 403 Permission denied
46
-
- 413 exceed limit
47
+
- 413 Exceed limit (see the [API Reference](https://api.seatable.com/reference/limits) about limits)
47
48
- 500 Internal Server Error
48
49
49
50
## Authorization
50
51
51
-
Base represents a table. You can use the api token of the form to obtain the authorization to read and write the base. This token can be generated directly on the web side.
52
-
53
-
Use the API Token of the base to get access authorization.
52
+
The `Base` object represents a table. You need to specify an `APIToken` to get access authorization and to be able to read and write the base. API tokens can be directly [generated in the web interface](https://seatable.com/help/erzeugen-eines-api-tokens/).
Copy file name to clipboardExpand all lines: docs/clients/php_api.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
-
# PHP Client
1
+
# PHP client
2
2
3
3
SeaTable's API exposes the entire SeaTable features via a standardized programmatic interface. The _SeaTable PHP Client_ encapsulates SeaTable Server Restful API. If you are familiar this client enables you to call every available API endpoint of SeaTable. You can interact with the user accounts, bases or files.
4
4
5
-
!!! success "Auto generated from openapi specification"
5
+
!!! info "Auto generated from openapi specification"
6
6
7
7
Since April 2024, we auto generate this SeaTable php client from our public available openapi specification. The advantage is that, the php client automatically contains all available API endpoints and we save a lot of programming capacity. Also we could generate more api clients for other programming languages in no time with the same feature set. The disadvantage is, that with this new client we removed some convenitent functions for authentication and the new version is not compatible at all with the version v0.2 and earlier.
Copy file name to clipboardExpand all lines: docs/clients/python_api.md
+4-3Lines changed: 4 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
-
# Python Client
1
+
# Python client
2
2
3
-
The SeaTable Python Client encapsulates SeaTable Server Restful API. You can call it in your python programm.
3
+
The SeaTable Python Client encapsulates SeaTable Server Restful API. You can call it in your python program.
4
4
5
-
!!! success "External python programms and python scripts, executed in SeaTable, use the same python library and therefore share the same functions. For an overview of the available functions, read the chapter of [script programming with Python](/scripts/python/basic_structure_python/) in this documentation."
5
+
!!! info "Unique Python library"
6
+
Unlike JavaScript, external python programs and python scripts, executed in SeaTable, use the same python library and therefore share the same functions. For an overview of the available functions, read the chapter of [script programming with Python](../scripts/python/introduction.md) in this documentation."
0 commit comments