Evo Voice

<back to all web services

GetPresenceStatusRequest

Requires Authentication
The following routes are available for this service:
All Verbs/presence
namespace Voice.Api.Sessions

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    type PresenceStatuses =
        | Free = 0
        | OnPhone = 1

    [<AllowNullLiteral>]
    type GetPresenceStatusResponse() = 
        member val Statuses:Dictionary<String, PresenceStatuses> = new Dictionary<String, PresenceStatuses>() with get,set

    [<AllowNullLiteral>]
    type GetPresenceStatusRequest() = 
        ///<summary>
        ///The account to retrieve presence status for
        ///</summary>
        [<ApiMember(Description="The account to retrieve presence status for")>]
        member val AccountId:String = null with get,set

        ///<summary>
        ///The extensions to retrieve presence status for
        ///</summary>
        [<ApiMember(Description="The extensions to retrieve presence status for")>]
        member val Extensions:ResizeArray<String> = new ResizeArray<String>() with get,set

F# GetPresenceStatusRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /presence HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	accountId: String,
	extensions: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	statuses: 
	{
		String: Free
	}
}