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
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Get all of the country based dialing permissions for this account
    */
    @Api(Description="Get all of the country based dialing permissions for this account")
    public static class GetDialingPermissions implements IGet
    {
        /**
        * The account ID you want to retrieve for
        */
        @ApiMember(Description="The account ID you want to retrieve for")
        public String accountId = null;
        
        public String getAccountId() { return accountId; }
        public GetDialingPermissions setAccountId(String value) { this.accountId = value; return this; }
    }

    public static class GetDialingPermissionsResponse
    {
        public ArrayList<DialingPermissionInfo> permissions = null;
        
        public ArrayList<DialingPermissionInfo> getPermissions() { return permissions; }
        public GetDialingPermissionsResponse setPermissions(ArrayList<DialingPermissionInfo> value) { this.permissions = value; return this; }
    }

    public static class DialingPermissionInfo
    {
        public String isoCode = null;
        public String name = null;
        public Boolean lowRiskNumbersEnabled = null;
        public Boolean highRiskSpecialNumbersEnabled = null;
        public Boolean highRiskTollfraudNumbersEnabled = null;
        
        public String getIsoCode() { return isoCode; }
        public DialingPermissionInfo setIsoCode(String value) { this.isoCode = value; return this; }
        public String getName() { return name; }
        public DialingPermissionInfo setName(String value) { this.name = value; return this; }
        public Boolean isLowRiskNumbersEnabled() { return lowRiskNumbersEnabled; }
        public DialingPermissionInfo setLowRiskNumbersEnabled(Boolean value) { this.lowRiskNumbersEnabled = value; return this; }
        public Boolean isHighRiskSpecialNumbersEnabled() { return highRiskSpecialNumbersEnabled; }
        public DialingPermissionInfo setHighRiskSpecialNumbersEnabled(Boolean value) { this.highRiskSpecialNumbersEnabled = value; return this; }
        public Boolean isHighRiskTollfraudNumbersEnabled() { return highRiskTollfraudNumbersEnabled; }
        public DialingPermissionInfo setHighRiskTollfraudNumbersEnabled(Boolean value) { this.highRiskTollfraudNumbersEnabled = value; return this; }
    }

}

Java GetDialingPermissions DTOs

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

HTTP + CSV

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/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

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