01-23-2019 05:28
01-23-2019 05:28
I used the API below to subscribe ALL events from user
POST https://api.fitbit.com/1/user/-/apiSubscriptions/9487.json
Below is what I get from notification
[ { collectionType: 'activities', date: '2019-01-23', ownerId: 'XXXXXX', ownerType: 'user', subscriptionId: '9487' } ]
The document suggested me to fetch the user's activities data using the following API
https://api.fitbit.com/1/user/XXXXXX/activities/date/2019-01-23.json
But there's no time series data return.
My question is how can I get the time series data updating with subscription ?
My solution is to go through ALL ( steps, floors, distances ) activities time series data and find out which has updated every time i get a new notification.
I don't think that's a good solution.
Any suggestions ?
Thanks so much !
01-30-2019 05:30
01-30-2019 05:30
Hi @geniustanley,
The activity endpoint shown to retrieve the data is just an example. You can use any of the activity, activity time series or activity intraday endpoints to retrieve the necessary data.
Unfortunately, we don't have a single API call that returns all of the time series resource data (e.g. step, elevation, distance, etc) at once.