kubaw | 2018-10-24 12:40:36 UTC | #1
Hi Everyone, I'm trying to access recordings via .NET SDK GetConversationRecordingsWithHttpInfo method. The problem is, that when I call the API for the first time i get e.g. 1 result and StatusCode 200. In the second call i get correct amount of data (in this example - 10). I'm prepared to wait some amount of time, when i get the 202 code at first, but how can i recognize, that i should wait in this case?
First call correlation-id is 81ecda80-2967-4327-9d90-5c9d07462394 (1 result). Second call correlation-id is 81ecda80-2967-4327-9d90-5c9d07462394 (10 results).
My code is:
var recordings = recApi.GetConversationRecordingsWithHttpInfo(conversationId, maxWaitMs, formatId); while (recordings.StatusCode == 202) { Thread.Sleep(5000); recordings = recApi.GetConversationRecordingsWithHttpInfo(conversationId, maxWaitMs, formatId); }
tim.smith | 2018-10-24 15:49:18 UTC | #2
If you're seeing inconsistent behavior from the API, please open a case with PureCloud Care to report it. If it's returning a 200 response, that should mean it's done transcoding recordings for the conversation. But based on your description, that's not the case.
system | 2018-11-24 15:49:20 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 3805