egg_server/test/archive/createFile.ts
2024-11-25 11:08:54 +00:00

16 lines
344 B
TypeScript

import { LarkService } from "@egg/net-tool"
const service = new LarkService({
appId: "cli_9f1e6b4e",
appSecret: "7b2f2f3a9b2c8e8a2f1a2b2b2b2b2b2b",
requestId: "schedule",
})
const res = await service.drive.createFile(
"D6ETfzaU9lN08adVDz3kjLey4Bx",
"xxx 项目 KV管理器",
"bitable"
)
console.log(JSON.stringify(res, null, 2))