01-17-2022 01:41
01-17-2022 01:41
I have developed a Webhook using the subscriptions API to get information about users' activities. It works fine, but I would like to know what is the action made for the activity (create, update or delete) so that I can modify it properly. The body of the request made by fitbit does not provide that information , or I can't find it.
Thank you in advance
Answered! Go to the Best Answer.
01-21-2022 12:34
01-21-2022 12:34
Hi @iBereciartua,
A webhook notification indicates when a resource was added, modified, or deleted. The notifications will not tell you what exactly occurred, it will just tell which resource has new data (whether it was added, modified, or deleted, but will not specify which of the three).
Per the documentation, its up to your application to determine what resource was changed and/or how it was affected by comparing the new data from the old data. For more information, see Responding To A Notification.
I hope this helps. Let me know if you have any additional questions.
01-21-2022 12:34
01-21-2022 12:34
Hi @iBereciartua,
A webhook notification indicates when a resource was added, modified, or deleted. The notifications will not tell you what exactly occurred, it will just tell which resource has new data (whether it was added, modified, or deleted, but will not specify which of the three).
Per the documentation, its up to your application to determine what resource was changed and/or how it was affected by comparing the new data from the old data. For more information, see Responding To A Notification.
I hope this helps. Let me know if you have any additional questions.
01-24-2022 05:01
01-24-2022 05:01
Thank you for your answer. Sadly, I can't track the data to check the method in my platform. Maybe it could be good if that information is included in the notification.