关闭实例
最近更新:2025-05-10 15:59:02
关闭会话
const close = async (apiKey: string) => {
const res = await bc.sessions.close(apiKey);
if (res.code === 200) {
console.log("res", res);
} else {
console.log("close", res);
}
};
入参
名称 | 类型 | 是否必须 | 字段含义 | 备注 |
---|---|---|---|---|
apiKey | string | 是 | apiKey | |
sessionId | string | 是 | sessionId | 唯一标识 |