Evo Voice

<back to all web services

GetDialingPermissions

Get all of the country based dialing permissions for this account

Requires Authentication
Requires any of the roles:SystemAdministrator, Manager, Customer
The following routes are available for this service:
GET/system/dialing-permissions
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Voice.Api.Settings

Namespace Global

    Namespace Voice.Api.Settings

        Public Partial Class DialingPermissionInfo
            Public Overridable Property IsoCode As String
            Public Overridable Property Name As String
            Public Overridable Property LowRiskNumbersEnabled As Boolean
            Public Overridable Property HighRiskSpecialNumbersEnabled As Boolean
            Public Overridable Property HighRiskTollfraudNumbersEnabled As Boolean
        End Class

        '''<Summary>
        '''Get all of the country based dialing permissions for this account
        '''</Summary>
        <Api(Description:="Get all of the country based dialing permissions for this account")>
        Public Partial Class GetDialingPermissions
            Implements IGet
            '''<Summary>
            '''The account ID you want to retrieve for
            '''</Summary>
            <ApiMember(Description:="The account ID you want to retrieve for")>
            Public Overridable Property AccountId As String
        End Class

        Public Partial Class GetDialingPermissionsResponse
            Public Sub New()
                Permissions = New List(Of DialingPermissionInfo)
            End Sub

            Public Overridable Property Permissions As List(Of DialingPermissionInfo)
        End Class
    End Namespace
End Namespace

VB.NET GetDialingPermissions 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 /system/dialing-permissions HTTP/1.1 
Host: evovoice.io 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	permissions: 
	[
		{
			isoCode: String,
			name: String,
			lowRiskNumbersEnabled: False,
			highRiskSpecialNumbersEnabled: False,
			highRiskTollfraudNumbersEnabled: False
		}
	]
}