我正在尝试从Fitbit获取活动,但是获取日期范围错误。
我该如何解决?
我的网址为https://api.fitbit.com/1/user/-/activities/date/2016-08-08/2016-08-09.json
Fitbit Response:
{ errors: [ { errorType: 'validation',
fieldName: 'resource path',
message: 'Invalid time series resource path: /activities' } ] }
答案 0 :(得分:1)
我错过了url prams Wrong Url-> https://api.fitbit.com/1/user/-/activities/date/2016-08-08/2016-08-09.json
更正网址 - > https://api.fitbit.com/1/user/-/activities/steps/date/2016-08-08/2016-08-09.json