createLightRhythmsRefreshTimer(data: PostLightRhythmsRefreshTimerParams)

版本要求:
MiniKit≥3.7.6@tuya-miniapp/cloud-api≥1.0.5

描述

创建定时刷新生物节律时间的任务

参数

参数类型必填说明
是请求参数:bizId(业务 ID)、bizType(业务类型)、cron(可选,cron 表达式)

返回值

类型:Promise<boolean>
boolean

合法值

PostLightRhythmsRefreshTimerParams.bizType
值说明MiniKit 最低版本
0--
1--

示例代码

请求示例

import { createLightRhythmsRefreshTimer } from '@tuya-miniapp/cloud-api';

createLightRhythmsRefreshTimer({
  bizId: 'vdevo167504******003',
  bizType: 0,
  cron: '0 0 0 * * ?',
})
  .then((response) => {
    console.log(response);
  })
  .catch();

返回示例

1