12-22-2017 03:31 - edited 12-22-2017 03:32
12-22-2017 03:31 - edited 12-22-2017 03:32
Hello Fitbit team! 🙂
We have been developing an application, which uses the sleep api v1.2.
In there response, there is a note, which says:
Note: Some processing is asynchronous. If the system is still processing one or more sleep logs that should be in the response when this API is queried, the response will indicate a retry duration given in milliseconds. The "meta" response may evolve with additional fields in the future; API clients should be prepared to ignore any new object properties they do not recognize.
{ "meta": { "retryDuration": 3000, "state": "pending" } }
I'd like to ask, whose responsibility it is to receive these pending logs? Is it our backend's responsibility to call the API again after the retryDuration or Fitbit is going send another update to its subscriber once the pending data has been processed?
Thanks for the replies! 🙂