Skip to content

zentao-api / ZentaoClientOptions

Interface: ZentaoClientOptions

创建 ZentaoClient 时使用的配置。

Properties

PropertyTypeDescription
baseUrlstring禅道站点根地址,例如 https://zentao.example.com;SDK 会自动拼接 /api.php/v2
insecure?boolean是否跳过 TLS 证书验证;仅 Node.js 运行时支持,浏览器中会抛错。
timeout?number默认请求超时时间,单位毫秒。
token?string禅道 API Token;未提供时可稍后通过 ZentaoClient.login 获取并写入实例。

Released under the MIT License.