Anthony_Gilio | 2023-11-13 16:50:30 UTC | #1
We are seeing that you need to call the API multiple times to get a response. Is there any way to await the response versus having to call it multiple times?
Thanks
Anthony_Gilio | 2023-11-15 17:22:40 UTC | #2
More information. Your 202 requests return no content. A more standard return of a 202 would contain information on determining when processing is complete so the client knows when to try again to get the needed data. Here is an example. HTTP STATUS 202 (Accepted)
{ "task": { "href": "/api/company/job-management/jobs/2130040", "id": "2130040" } }
Any thoughts on getting the status of the job? We only want 1 recording at a time is there a better way? It looks like you use the same API on the interactions page when requesting a download.
Anthony_Gilio | 2023-11-15 14:50:30 UTC | #3
Morning any thoughts on this?
Anthony_Gilio | 2023-11-27 18:25:10 UTC | #4
Hi,
I know last week was a holiday I'm hoping to get a response or thoughts on this.
Thank You
tim.smith | 2023-11-27 18:49:39 UTC | #5
A 202 response means the recording is transcoding and is not yet available. When you get a 200 with the response body, the recording is now available. Transcoding is not a fixed length process and will take a variable amount of time depending on length of the recording and overall system load. Your application should poll every couple seconds until transcoding is complete.
If a user's workflow is to do this often or you are already using notifications in your app, use the v2.users.{id}.conversations.{id}.recordings.{id} topic to get an event when transcoding is complete. This can be used in place of polling when appropriate.
Anthony_Gilio | 2023-11-27 19:07:34 UTC | #6
We won't be using the current user context to do this. Unfortunately, it sounds like we just need to keep polling for a 200.
system | 2023-12-27 19:07:43 UTC | #7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 23096