Requires any of the roles: | SystemAdministrator, Manager |
GET | /dashboard/call-center |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Dashboard
Namespace Global
Namespace Voice.Api.Dashboard
Public Partial Class CallCenterDashboard
Public Overridable Property Agents As List(Of CallCenterDashboardAgent)
Public Overridable Property Queues As List(Of CallCenterDashboardQueue)
Public Overridable Property Calls As List(Of CallCenterDashboardCall)
End Class
Public Partial Class CallCenterDashboardAgent
Public Overridable Property Id As String
Public Overridable Property Name As String
Public Overridable Property Queues As List(Of String)
Public Overridable Property AgentState As String
Public Overridable Property CallState As String
Public Overridable Property SignInTime As String
Public Overridable Property SignInDuration As String
Public Overridable Property PercentAvailable As String
Public Overridable Property AvgBusyIn As String
Public Overridable Property AvgWrapUp As String
Public Overridable Property DateOfLastCall As String
End Class
Public Partial Class CallCenterDashboardCall
Public Overridable Property Id As String
Public Overridable Property Customer As String
Public Overridable Property Queue As String
Public Overridable Property Agent As String
Public Overridable Property State As String
Public Overridable Property Duration As String
Public Overridable Property Hold As String
Public Overridable Property ExtraInfo As String
End Class
Public Partial Class CallCenterDashboardQueue
Public Overridable Property Name As String
Public Overridable Property NumAgents As Integer
Public Overridable Property NumCallsQueued As Integer
Public Overridable Property LongestWaitingCall As String
Public Overridable Property ExpectedWaitTime As String
Public Overridable Property ExpectedHoldTime As String
Public Overridable Property AverageSpeedOfAnswer As String
Public Overridable Property IdleAgents As Integer
Public Overridable Property UnavailableAgents As Integer
End Class
'''<Summary>
'''Returns the call center dashboard data
'''</Summary>
<Api(Description:="Returns the call center dashboard data")>
Public Partial Class GetCallCenterDashboard
Implements IPost
'''<Summary>
'''The account ID to retrieve for
'''</Summary>
<ApiMember(Description:="The account ID to retrieve for")>
Public Overridable Property AccountId As String
End Class
End Namespace
End Namespace
VB.NET GetCallCenterDashboard DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /dashboard/call-center HTTP/1.1 Host: team.evovoice.io Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CallCenterDashboard xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Voice.Api.Dashboard"> <Agents> <CallCenterDashboardAgent> <AgentState>String</AgentState> <AvgBusyIn>String</AvgBusyIn> <AvgWrapUp>String</AvgWrapUp> <CallState>String</CallState> <DateOfLastCall>String</DateOfLastCall> <Id>String</Id> <Name>String</Name> <PercentAvailable>String</PercentAvailable> <Queues xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:string>String</d4p1:string> </Queues> <SignInDuration>String</SignInDuration> <SignInTime>String</SignInTime> </CallCenterDashboardAgent> </Agents> <Calls> <CallCenterDashboardCall> <Agent>String</Agent> <Customer>String</Customer> <Duration>String</Duration> <ExtraInfo>String</ExtraInfo> <Hold>String</Hold> <Id>String</Id> <Queue>String</Queue> <State>String</State> </CallCenterDashboardCall> </Calls> <Queues> <CallCenterDashboardQueue> <AverageSpeedOfAnswer>String</AverageSpeedOfAnswer> <ExpectedHoldTime>String</ExpectedHoldTime> <ExpectedWaitTime>String</ExpectedWaitTime> <IdleAgents>0</IdleAgents> <LongestWaitingCall>String</LongestWaitingCall> <Name>String</Name> <NumAgents>0</NumAgents> <NumCallsQueued>0</NumCallsQueued> <UnavailableAgents>0</UnavailableAgents> </CallCenterDashboardQueue> </Queues> </CallCenterDashboard>