https://github.com/wangenius/feishub
feishu 飞书文档 node sdk
https://github.com/wangenius/feishub
feishu node sdk
Last synced: 13 days ago
JSON representation
feishu 飞书文档 node sdk
- Host: GitHub
- URL: https://github.com/wangenius/feishub
- Owner: wangenius
- License: mit
- Created: 2025-08-07T04:00:12.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2025-08-15T08:57:16.000Z (2 months ago)
- Last Synced: 2025-09-22T16:50:31.540Z (25 days ago)
- Topics: feishu, node, sdk
- Language: TypeScript
- Homepage: https://wangenius.github.io/feishub/
- Size: 357 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# feishub
feishub 是一个 飞书的 sdk。
```shell
npm i feishub
```## 快速开始
```typescript
import { Feishu, Table } from "feishub";const feishu = new Feishu({
appId: "cli_xxxx",
appSecret: "xxxx",
});
const table = feishu.table({
tableId: "xxxx",
appToken: "xxxx",
});// 或者
const table = new Table({
appToken: "xxxx",
tableId: "xxxx",
feishu,
});// 获取多维表格元数据
const meta = await table.meta();
// 插入记录
table.insert({});
// 更新记录
table.update("id", {});
// 删除记录
table.delete("id");
// 搜索记录
table.search({
filter: {
conjunction: "and",
conditions: [
{
field_name: "name",
// is isNot contains doesNotContain isEmpty isNotEmpty isGreater isGreaterEqual isLess isLessEqual like in
operator: "equal",
// string[]
value: "张三",
},
],
},
sort: [
{
field_name: "name",
desc: true,
},
],
});
// 列出多维表格的所有字段
table.fields();
```