我想通过garmin API获取我的设备的“每日摘要”。
我可以从https://healthapi.garmin.com/获取数据,但不能通过接口请求获取数据。
为了获取“每日摘要”,我执行以下步骤:
我创建了curl命令:
curl -v -X POST -H "Content-Type: application/json;charset=utf-8" -d '{"dailies":[{"userAccessToken":"userAccessToken","uploadStartTimeInSeconds":1514847600,"uploadEndTimeInSeconds":1515597660,"callbackURL":" https://healthapi.garmin.com/wellnessapi/rest/dailies"}]}' http://mysite/testping.php
其中userAccessToken -是我用来登录https://healthapi.garmin.com/的标签。作为响应,我得到了没有任何数据请求。
我使用手册"Health REST API Specification“作为示例。
请回答,为什么我不提供请求中的任何数据?
转载请注明出处:http://www.lechuangzk.com/article/20230526/1598558.html