Network
Network APIs 是 Nexus 平台运行时的网络请求模块,为应用提供 PingCode REST API 访问、外部网络请求及跨应用通信能力。
安装
npm install @pc-nexus/network导入
javascript
import { api } from "@pc-nexus/network";
import { fetch } from "@pc-nexus/network";APIs
Network APIs 提供的能力如下:
| APIs | 描述 |
|---|---|
| api | 调用 PingCode REST API,运行时自动处理认证 |
| fetch | 向外部服务发起 HTTP 请求 |
| remote | 调用远程服务端点 |