github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/docs/AccountsAvailablePhoneNumbersApi.md (about) 1 # AccountsAvailablePhoneNumbersApi 2 3 All URIs are relative to *https://api.twilio.com* 4 5 Method | HTTP request | Description 6 ------------- | ------------- | ------------- 7 [**FetchAvailablePhoneNumberCountry**](AccountsAvailablePhoneNumbersApi.md#FetchAvailablePhoneNumberCountry) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers/{CountryCode}.json | 8 [**ListAvailablePhoneNumberCountry**](AccountsAvailablePhoneNumbersApi.md#ListAvailablePhoneNumberCountry) | **Get** /2010-04-01/Accounts/{AccountSid}/AvailablePhoneNumbers.json | 9 10 11 12 ## FetchAvailablePhoneNumberCountry 13 14 > ApiV2010AvailablePhoneNumberCountry FetchAvailablePhoneNumberCountry(ctx, CountryCodeoptional) 15 16 17 18 19 20 ### Path Parameters 21 22 23 Name | Type | Description 24 ------------- | ------------- | ------------- 25 **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. 26 **CountryCode** | **string** | The [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of the country to fetch available phone number information about. 27 28 ### Other Parameters 29 30 Other parameters are passed through a pointer to a FetchAvailablePhoneNumberCountryParams struct 31 32 33 Name | Type | Description 34 ------------- | ------------- | ------------- 35 **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resource. 36 37 ### Return type 38 39 [**ApiV2010AvailablePhoneNumberCountry**](ApiV2010AvailablePhoneNumberCountry.md) 40 41 ### Authorization 42 43 [accountSid_authToken](../README.md#accountSid_authToken) 44 45 ### HTTP request headers 46 47 - **Content-Type**: Not defined 48 - **Accept**: application/json 49 50 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 51 [[Back to Model list]](../README.md#documentation-for-models) 52 [[Back to README]](../README.md) 53 54 55 ## ListAvailablePhoneNumberCountry 56 57 > []ApiV2010AvailablePhoneNumberCountry ListAvailablePhoneNumberCountry(ctx, optional) 58 59 60 61 62 63 ### Path Parameters 64 65 This endpoint does not need any path parameter. 66 67 ### Other Parameters 68 69 Other parameters are passed through a pointer to a ListAvailablePhoneNumberCountryParams struct 70 71 72 Name | Type | Description 73 ------------- | ------------- | ------------- 74 **PathAccountSid** | **string** | The SID of the [Account](https://www.twilio.com/docs/iam/api/account) requesting the available phone number Country resources. 75 **PageSize** | **int** | How many resources to return in each list page. The default is 50, and the maximum is 1000. 76 **Limit** | **int** | Max number of records to return. 77 78 ### Return type 79 80 [**[]ApiV2010AvailablePhoneNumberCountry**](ApiV2010AvailablePhoneNumberCountry.md) 81 82 ### Authorization 83 84 [accountSid_authToken](../README.md#accountSid_authToken) 85 86 ### HTTP request headers 87 88 - **Content-Type**: Not defined 89 - **Accept**: application/json 90 91 [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) 92 [[Back to Model list]](../README.md#documentation-for-models) 93 [[Back to README]](../README.md) 94