github.com/twilio/twilio-go@v1.20.1/rest/voice/v1/docs/DialingPermissionsCountriesApi.md (about) 1 # DialingPermissionsCountriesApi 2 3 All URIs are relative to *https://voice.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**FetchDialingPermissionsCountry**](DialingPermissionsCountriesApi.md#FetchDialingPermissionsCountry) | **Get** /v1/DialingPermissions/Countries/{IsoCode} | 8 [**ListDialingPermissionsCountry**](DialingPermissionsCountriesApi.md#ListDialingPermissionsCountry) | **Get** /v1/DialingPermissions/Countries | 9 10 11 12 ## FetchDialingPermissionsCountry 13 14 > VoiceV1DialingPermissionsCountryInstance FetchDialingPermissionsCountry(ctx, IsoCode) 15 16 17 18 Retrieve voice dialing country permissions identified by the given ISO country code 19 20 ### Path Parameters 21 22 23 Name | Type | Description 24 ------------- | ------------- | ------------- 25 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 26 **IsoCode** | **string** | The [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) of the DialingPermissions Country resource to fetch 27 28 ### Other Parameters 29 30 Other parameters are passed through a pointer to a FetchDialingPermissionsCountryParams struct 31 32 33 Name | Type | Description 34 ------------- | ------------- | ------------- 35 36 ### Return type 37 38 [**VoiceV1DialingPermissionsCountryInstance**](VoiceV1DialingPermissionsCountryInstance.md) 39 40 ### Authorization 41 42 [accountSid_authToken](../README.md#accountSid_authToken) 43 44 ### HTTP request headers 45 46 - **Content-Type**: Not defined 47 - **Accept**: application/json 48 49 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 50 [[Back to Model list]](../README.md#documentation-for-models) 51 [[Back to README]](../README.md) 52 53 54 ## ListDialingPermissionsCountry 55 56 > []VoiceV1DialingPermissionsCountry ListDialingPermissionsCountry(ctx, optional) 57 58 59 60 Retrieve all voice dialing country permissions for this account 61 62 ### Path Parameters 63 64 This endpoint does not need any path parameter. 65 66 ### Other Parameters 67 68 Other parameters are passed through a pointer to a ListDialingPermissionsCountryParams struct 69 70 71 Name | Type | Description 72 ------------- | ------------- | ------------- 73 **IsoCode** | **string** | Filter to retrieve the country permissions by specifying the [ISO country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) 74 **Continent** | **string** | Filter to retrieve the country permissions by specifying the continent 75 **CountryCode** | **string** | Filter the results by specified [country codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html) 76 **LowRiskNumbersEnabled** | **bool** | Filter to retrieve the country permissions with dialing to low-risk numbers enabled. Can be: `true` or `false`. 77 **HighRiskSpecialNumbersEnabled** | **bool** | Filter to retrieve the country permissions with dialing to high-risk special service numbers enabled. Can be: `true` or `false` 78 **HighRiskTollfraudNumbersEnabled** | **bool** | Filter to retrieve the country permissions with dialing to high-risk [toll fraud](https://www.twilio.com/blog/how-to-protect-your-account-from-toll-fraud-with-voice-dialing-geo-permissions-html) numbers enabled. Can be: `true` or `false`. 79 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 80 **Limit** | **int** | Max number of records to return. 81 82 ### Return type 83 84 [**[]VoiceV1DialingPermissionsCountry**](VoiceV1DialingPermissionsCountry.md) 85 86 ### Authorization 87 88 [accountSid_authToken](../README.md#accountSid_authToken) 89 90 ### HTTP request headers 91 92 - **Content-Type**: Not defined 93 - **Accept**: application/json 94 95 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 96 [[Back to Model list]](../README.md#documentation-for-models) 97 [[Back to README]](../README.md) 98