https://github.com/seatable/dtable-sdk
DTable SDK provides realtime access to a dtable in SeaTable.
https://github.com/seatable/dtable-sdk
Last synced: 5 months ago
JSON representation
DTable SDK provides realtime access to a dtable in SeaTable.
- Host: GitHub
- URL: https://github.com/seatable/dtable-sdk
- Owner: seatable
- License: apache-2.0
- Created: 2019-12-05T09:02:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-07-31T09:50:54.000Z (10 months ago)
- Last Synced: 2025-07-31T13:18:55.854Z (10 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.07 MB
- Stars: 9
- Watchers: 7
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# dtable-sdk
JavaScript SDK for SeaTable (DTable is an old name).
## Adding to your project
Using npm:
~~~bash
npm i dtable-sdk --save
~~~
## Basic demo
Prepare a test base, just like:
| Name | Result |
| ---- | ------ |
| Mike | |
| Judy | |
Create a base with a table named `sayHello` and a view named `Default_View`. Then, add a long text column named `Result`. Add a few rows and create a name for each row. Leave the `Result` column blank.
Then, generate an APIToken and change the `example/example.json` file like the code below:
~~~json
{
"APIToken": "xxxxxxxx",
"server": "http://127.0.0.1:8001",
"workspaceID": "xxxxxxxx",
"dtableName": "xxxxxxxx",
"licenseGeneratorToken": "xxxxxxxx"
}
~~~
Run `npm run example` and wait for a few seconds. You will see result column has changed to something similar to this:
| Name | Result |
| ---- | ---------- |
| Mike | Hello Mike |
| Judy | Hello Judy |