Evo Voice

<back to all web services

GetUniqueEndpointValue

Get a unique number string value for an endpoint field

Requires Authentication
The following routes are available for this service:
GET/values/endpoint/unique
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Flows.Values

Namespace Global

    Namespace Voice.Api.Flows.Values

        '''<Summary>
        '''Get a unique number string value for an endpoint field
        '''</Summary>
        <Api(Description:="Get a unique number string value for an endpoint field")>
        Public Partial Class GetUniqueEndpointValue
            '''<Summary>
            '''The account ID you are interested in
            '''</Summary>
            <ApiMember(Description:="The account ID you are interested in")>
            Public Overridable Property AccountId As String

            '''<Summary>
            '''The endpoint field you want a unique value for
            '''</Summary>
            <ApiMember(Description:="The endpoint field you want a unique value for")>
            Public Overridable Property FieldName As String

            '''<Summary>
            '''The prefix to use for the value
            '''</Summary>
            <ApiMember(Description:="The prefix to use for the value")>
            Public Overridable Property Prefix As String

            '''<Summary>
            '''The length of the value
            '''</Summary>
            <ApiMember(Description:="The length of the value")>
            Public Overridable Property Length As Integer
        End Class

        Public Partial Class GetUniqueEndpointValueResponse
            Public Overridable Property Value As String
        End Class
    End Namespace
End Namespace

VB.NET GetUniqueEndpointValue 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.

GET /values/endpoint/unique HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	value: String
}