🏃‍♂️运动步数

第一步 获取健康设备列表

http://127.0.0.1:8898/v1/LuaApiCaller?funcname=MagicCgi&timeout=10&wxid=wxid_xxxx

POST JSON

{ "CgiCmd":1267, "CgiRequest":{ } }

返回

{"CgiBaseResponse":{"Ret":0,"ErrMsg":""},"ResponseData":{"ConnProto":"6","DeviceId":"eda2a43cfc3c287ef307cc3e129092c2","DeviceName":"苹果健康","DeviceType":"gh_43f2581f6fd1","IconUrl":"http://o2o.gtimg.com/build/wx_sports/images/icon_apple_health.png"}}

第二步 提交步数数据

http://127.0.0.1:8898/v1/LuaApiCaller?funcname=MagicCgi&timeout=10&wxid=wxid_xxxx

POST JSON

{ "CgiCmd":1261, "CgiRequest":{ "DeviceId": "eda2a43cfc3c287ef307cc3e129092c2", "StepCounts": 30000, "DeviceType": "gh_43f2581f6fd1" } }

最大步数自行摸索

Last updated