以下将有效,但我不确定这是你在寻找什么
fitbit_stats = authd_client._COLLECTION_RESOURCE('activities/heart', date='2016-08-11')
print fitbit_stats
我猜你想要盘中日期(像我一样)
Access to the Intraday Time Series for personal use (accessing your
own data) is available through the “Personal” App Type.
Access to the Intraday Time Series for all other uses is currently
granted on a case-by-case basis. …
我在fitbit api包中添加了一个自定义函数:
def get_heartrate_intraday(self, date="today", end_date="1d", detail_level="1sec", user_id=None):
uri = "{0}/{1}/user/-/activities/heart/date/{date}/{end_date}/{detail_level}.json"
date = self._get_date_string(date)
end_date = self._get_date_string(end_date)
url = uri.format(
*self._get_common_args(user_id=user_id),
date=date,