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

activity 15min intra-day data

ANSWERED

Urgent need help for retrieving activity 15min data with new oauth 2.0 before September 15th.

I need to implement data synchronization for activity 15min data with oauth 2.0 for all users who are using our application that links with fitbit.

Please show me how to implement with authorization code type app.

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

@reno13: Has the device synced with Fitbit's servers? Make a request to the Get Devices endpoint and look at the lastSyncTime.

View best answer in original post

Best Answer
0 Votes
4 REPLIES 4

The Get Intraday Times Series endpoints provide second-level or minute-level data.

 

You should follow the instructions for obtaining consent using OAuth 2.0 for using the authorization code flow.

Best Answer
0 Votes

 curl -i -H "Authorization: Bearer [access_token]" https://api.fitbit.com/1/user/-/activities/steps/date/today/1m.json

and receive json data

{"activities-steps":[

。。。

{"dateTime":"2016-08-29","value":"0"},
{"dateTime":"2016-08-30","value":"0"},
{"dateTime":"2016-08-31","value":"0"},
{"dateTime":"2016-09-01","value":"0"},
{"dateTime":"2016-09-02","value":"0"},
{"dateTime":"2016-09-03","value":"0"},
{"dateTime":"2016-09-04","value":"0"},
{"dateTime":"2016-09-05","value":"0"},
{"dateTime":"2016-09-06","value":"0"}]

 

 

but infact the data shown on device

8/28:9732steps
8/29:11778steps
8/30:10315steps(current_time capture)

 

I sent you PM for detail private fitbit data.

 

 

Best Answer
0 Votes

@reno13: Has the device synced with Fitbit's servers? Make a request to the Get Devices endpoint and look at the lastSyncTime.

Best Answer
0 Votes

Actually all issues have been solved.

Its about the migration problem.

Thanks for your supports.

Best Answer
0 Votes