@5app/digital-hub-api 中文文档教程
Digital Hub NodeJS API
用于与Digital Hub 互操作的 NodeJS API
Samples
< href="./samples">samples 文件夹 重点介绍了如何使用 API 来自动化和报告数字中心的操作。
Core API
创建集线器的实例
const Hub = require('@5app/digital-hub-api');
constructor
构造函数定义环境和用户凭据
const hub = new Hub({
tenant,
username,
password
})
api
这使用 node-fetch 发出请求。
await hub.api({
path: 'api/assets',
qs: {
fields: ['id', 'name'],
filters: {
parent_id: 13123
}
}
})
注意:有关可用 HTTP 端点、方法和参数的文档正在开发中。
更多
你可能也喜欢
- 32ae08ef 中文文档教程
- @0ti.me/postgres-db-versioning 中文文档教程
- @0x/contracts-test-utils 中文文档教程
- @1hive/connect-thegraph-conviction-voting 中文文档教程
- @2600hz/sds-native-theme 中文文档教程
- @2players/ft 中文文档教程
- @2plgiap/react-leaflet 中文文档教程
- @42.nl/react-error-store 中文文档教程
- @4geit/rct-layout-component 中文文档教程
- @4leaf.ysh/use-title 中文文档教程