Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

body/log/fat/date/[date]/[period].json does not return period of data

Please see documentation at;

https://dev.fitbit.com/docs/body/#weight

 

For my test user I logged weight data for a period of week. Then when I want to get list of weight data which includes 1m of period, it only returns weight list of starting date, does not return remaining 1m of data information.

 

Is it a known issue or am I missing something?

Best Answer
0 Votes
2 REPLIES 2

Hello Fitbit developers..

Is there any update on this?

Best Answer
0 Votes

This worked as expected for me.

 

GET /1/user/-/body/log/weight/date/2015-09-01/1m.json

HTTP/1.1 200 OK

Content-Language: en
Cache-control: no-cache, must-revalidate
Fitbit-Rate-Limit-Limit: 150
Expires: Thu, 01 Jan 1970 00:00:00 GMT
X-UA-Compatible: IE=edge,chrome=1
Set-Cookie: __cfduid=def871bc94a14263e2a097b6dbb595c461445537759; expires=Fri, 21-Oct-16 18:15:59 GMT; path=/; domain=.fitbit.com; HttpOnly
Set-Cookie: JSESSIONID=4FBF330E4ADC662A2C1AB92F1DB5CC8A.fitbit1; Path=/; HttpOnly
Connection: keep-alive
Server: cloudflare-nginx
Pragma: no-cache
X-Frame-Options: SAMEORIGIN
Vary: Accept-Encoding
Date: Thu, 22 Oct 2015 18:16:00 GMT
Transfer-Encoding: chunked
Fitbit-Rate-Limit-Remaining: 148
CF-RAY: 239730d7a685020d-IAD
Fitbit-Rate-Limit-Reset: 2640
Content-Type: application/json;charset=UTF-8


{
  "weight": [
    {
      "bmi": 20.03,
      "date": "2015-08-01",
      "fat": 10.109999656677246,
      "logId": 1438435755000,
      "time": "13:29:15",
      "weight": 67
    },
    {
      "bmi": 20.25,
      "date": "2015-08-04",
      "fat": 9.649999618530273,
      "logId": 1438680038000,
      "time": "09:20:38",
      "weight": 67.8
    },
    {
      "bmi": 20.12,
      "date": "2015-08-06",
      "fat": 9.996999740600586,
      "logId": 1438849447000,
      "time": "08:24:07",
      "weight": 67.3
    },
    {
      "bmi": 19.82,
      "date": "2015-08-09",
      "fat": 10.810999870300293,
      "logId": 1439117606000,
      "time": "10:53:26",
      "weight": 66.3
    },
    {
      "bmi": 19.8,
      "date": "2015-08-11",
      "fat": 10.388999938964844,
      "logId": 1439285509000,
      "time": "09:31:49",
      "weight": 66.3
    },
    {
      "bmi": 20.02,
      "date": "2015-08-13",
      "fat": 10.652999877929688,
      "logId": 1439456372000,
      "time": "08:59:32",
      "weight": 67
    },
    {
      "bmi": 19.75,
      "date": "2015-08-24",
      "fat": 9.942999839782715,
      "logId": 1440401004000,
      "time": "07:23:24",
      "weight": 66.1
    },
    {
      "bmi": 20.01,
      "date": "2015-08-24",
      "logId": 1440460799000,
      "time": "23:59:59",
      "weight": 67
    },
    {
      "bmi": 20.01,
      "date": "2015-08-26",
      "fat": 10.14799976348877,
      "logId": 1440578335000,
      "time": "08:38:55",
      "weight": 67
    },
    {
      "bmi": 19.79,
      "date": "2015-08-28",
      "fat": 9.973999977111816,
      "logId": 1440752124000,
      "time": "08:55:24",
      "weight": 66.2
    },
    {
      "bmi": 19.79,
      "date": "2015-08-29",
      "fat": 9.836999893188477,
      "logId": 1440851891000,
      "time": "12:38:11",
      "weight": 66.2
    },
    {
      "bmi": 19.96,
      "date": "2015-08-30",
      "fat": 10.07699966430664,
      "logId": 1440926755000,
      "time": "09:25:55",
      "weight": 66.8
    },
    {
      "bmi": 19.85,
      "date": "2015-09-01",
      "fat": 9.89799976348877,
      "logId": 1441137785000,
      "time": "20:03:05",
      "weight": 66.4
    }
  ]
}

 

Best Answer
0 Votes