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

Notification date - what days do you process

ANSWERED
I have looked for an answer everywhere but just can't get a precise answer. 

 When I get a notification for activities like below: 
   {
          "collectionType""activities",
          "date""2020-06-01",
          "ownerId""184X36",
          "ownerType""user",
          "subscriptionId""2345"
 },
      
I want to get the users, updated steps for the day, activities and updated heartrates. Do I only process the events for that exact data? i.e. everything that happened on the 1st of June for the three areas? I dont process everything from the 1st of June until current date? 
                
If its only for that date will my notification api receive multiple notifications for each day that new data was logged/updated? 
Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Hi @FitVaultWeld 

 

The notification your application receives represents date that the data was changed.  However, we do not distinguish what information was changed.   You will need to query the endpoints to get the data you need.   With the information you mentioned, I would suspect you would only need to query 2 endpoints: the daily activity summary and heart rate endpoints.  If you're retrieving the activity intraday step count, then you'll need to add that endpoint, too.   

 

If a user is not syncing their device on a regular basis, or if there is a problem with the Fitbit webhook service, it is possible your application might not receive all notifications.   Therefore, I would recommend keeping track of when you received the last notification.  When the new notification is received, you can query for any new / updated data that is updated between the time period the 2 notifications were sent.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Hi @FitVaultWeld 

 

The notification your application receives represents date that the data was changed.  However, we do not distinguish what information was changed.   You will need to query the endpoints to get the data you need.   With the information you mentioned, I would suspect you would only need to query 2 endpoints: the daily activity summary and heart rate endpoints.  If you're retrieving the activity intraday step count, then you'll need to add that endpoint, too.   

 

If a user is not syncing their device on a regular basis, or if there is a problem with the Fitbit webhook service, it is possible your application might not receive all notifications.   Therefore, I would recommend keeping track of when you received the last notification.  When the new notification is received, you can query for any new / updated data that is updated between the time period the 2 notifications were sent.

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

Thank you that makes sense.

Best Answer
0 Votes