Behymer_Joe | 2020-05-08 18:29:07 UTC | #1
Getting Historical Adherence results must be done in two steps because of the potential for the request to take a long time.
- Subscribe to the correct notification topic to register to get results.
- Make a POST to start the process for loading historical adherence data.
First, you want to subscribe to the historical adherence notification. This is where your results will come from. Details about how to do this are here.
The topic you want to subscribe to is v2.users.{yourUserId}.workforcemanagement.historicaladherencequery. Make sure you use the userID of the account that is making the API call, not the userID of the agent you are requesting historical adherence information for. Notification topic details are located here.
Once you are subscribed to the topic, you can make your POST to /api/v2/workforcemanagement/adherence/historical.
In the response from this POST, you'll get an id back. Think of this as an operation ID. In your notification handler, watch for a notification with an id that matches the one you got back from your POST (to make sure this is your request, and not another request in the same Management Unit).
Finally your notification handler code will get a downloadUrls array where you can download the historical adherence data for the agents you requested.
system | 2020-06-08 18:29:13 UTC | #2
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: 7749