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

Subscription detail

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 !

Best Answer
0 Votes
1 REPLY 1

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.  

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes