zl程序教程

您现在的位置是:首页 >  后端

当前栏目

【HMS Core】运动健康服务获取上床时间api返回 resultCode:1001 data:api permission exception

Core服务API 获取 时间 Data 返回 健康
2023-09-11 14:17:16 时间

问题描述:

DATA_SESSION_CORE_SLEEP_BED 在运动健康app上手动输入的睡眠时间 获取睡眠详情可以获取到数据,但是获取上床时间api返回 resultCode:1001 data:api permission exception

cke_422.png

 

解决方案:

“DATA_SESSION_CORE_SLEEP_BED ”是科学睡眠详情的子类型。不能作为HiHealthDataQuery的查询参数。

https://developer.huawei.com/consumer/cn/doc/development/HMSCore-References/hihealthsessiontype-0000001071549461#section499358009152226

cke_2033.png

在HiHealthDataQuery查询科学睡眠详情时,您需要传入HiHealthSessionType.DATA_SESSION_CORE_SLEEP。

cke_2984.png

​欲了解更多更全技术文章,欢迎访问https://developer.huawei.com/consumer/cn/forum/?ha_source=zzh