I went through the documentation many times and looked at the code sample but I can’t figure out how to use the Feedback & Status APIs.
Per my tests, my understanding is that my cloud app will receive a webhook call APP_DATA_UPLOADED for every “app data” uploaded by the server app (+ 1 call LISTENER_TRIGGERED), the order of those calls being potentially random.
In my case, the cloud app can’t know in advance how many “app data” will be uploaded, so I’m not sure how I can provide a status update. It seems the Feedback API is only cloud to server, so I can’t use that to send the number of files.
What is the recommended approach?
- Should the server write 1 AppData at a time and use the Feedback API to wait for the cloud to process it?
- Should the server write 1 custom AppData that includes the number of expected pieces?