Requires any of the roles: | SystemAdministrator, Manager |
GET | /calls/active |
---|
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 CallInfo
Public Overridable Property AccountSid As String
Public Overridable Property AnsweredBy As String
Public Overridable Property CallerName As String
Public Overridable Property DateCreated As String
Public Overridable Property DateUpdated As String
Public Overridable Property Direction As String
Public Overridable Property Duration As Integer
Public Overridable Property EndTime As String
Public Overridable Property ForwardedFrom As String
Public Overridable Property From As String
Public Overridable Property FromFormatted As String
Public Overridable Property ParentCallSid As String
Public Overridable Property PhoneNumberSid As String
Public Overridable Property Price As Decimal
Public Overridable Property PriceUnit As String
Public Overridable Property Sid As String
Public Overridable Property StartTime As String
Public Overridable Property Status As String
Public Overridable Property [To] As String
Public Overridable Property ToFormatted As String
Public Overridable Property Uri As String
End Class
'''<Summary>
'''Gets all activecalls
'''</Summary>
<Api(Description:="Gets all activecalls")>
Public Partial Class GetActiveCalls
Implements IGet
'''<Summary>
'''The account ID to retrieve for
'''</Summary>
<ApiMember(Description:="The account ID to retrieve for")>
Public Overridable Property AccountId As String
End Class
Public Partial Class GetActiveCallsResponse
Public Overridable Property Calls As List(Of CallInfo)
End Class
End Namespace
End Namespace
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /calls/active HTTP/1.1 Host: team.evovoice.io Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"calls":[{"accountSid":"String","answeredBy":"String","callerName":"String","dateCreated":"String","dateUpdated":"String","direction":"String","duration":0,"endTime":"String","forwardedFrom":"String","from":"String","fromFormatted":"String","parentCallSid":"String","phoneNumberSid":"String","price":0,"priceUnit":"String","sid":"String","startTime":"String","status":"String","to":"String","toFormatted":"String","uri":"String"}]}