Requires any of the roles: | SystemAdministrator, Manager, Customer |
GET | /system/dialing-permissions |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
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 .jsv suffix or ?format=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: team.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 } ] }