Skip to main content

RegionalSettingsService

A list of all methods in the RegionalSettingsService service. Click on the method name to view detailed information about that method.

MethodsDescription
list_statesReturns all states of a certain country.
read_stateReturns information on a specific state by ID.
list_locationsReturns all available locations for a certain state.
list_languagesReturns information about the supported languages.
read_languageReturns a language by ID.
list_timezonesReturns all available timezones.
read_timezoneReturns information on a certain timezone.
list_countriesReturns all countries available for calling.
read_countryReturns information on a specific country.

list_states

Returns all states of a certain country.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/state

Parameters

NameTypeRequiredDescription
all_countriesboolIf set to true then states of all countries are returned and countryId is ignored, even if specified. If the value is empty then the parameter is ignored
country_idintInternal identifier of a country
pageintIndicates a page number to retrieve. Only positive number values are accepted
per_pageintIndicates a page size (number of items)
with_phone_numbersboolIf true the list of states with phone numbers available for buying is returned

Return Type

GetStateListResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.list_states(
all_countries=True,
country_id=0,
page=1,
per_page=100,
with_phone_numbers=False
)

print(result)

read_state

Returns information on a specific state by ID.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/state/{stateId}

Parameters

NameTypeRequiredDescription
state_idintInternal identifier of a state

Return Type

GetStateInfoResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.read_state(state_id=10)

print(result)

list_locations

Returns all available locations for a certain state.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/location

Parameters

NameTypeRequiredDescription
order_byListLocationsOrderBySorts results by the property specified
pageintIndicates a page number to retrieve. Only positive number values are accepted
per_pageintIndicates a page size (number of items)
state_idstrInternal identifier of a state
with_nxxboolSpecifies if nxx codes are returned

Return Type

GetLocationListResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import ListLocationsOrderBy

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.list_locations(
order_by="Npa",
page=1,
per_page=100,
state_id="stateId",
with_nxx=False
)

print(result)

list_languages

Returns information about the supported languages.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/language

Return Type

LanguageList

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.list_languages()

print(result)

read_language

Returns a language by ID.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/language/{languageId}

Parameters

NameTypeRequiredDescription
language_idintInternal identifier of a language

Return Type

LanguageInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.read_language(language_id=4)

print(result)

list_timezones

Returns all available timezones.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/timezone

Parameters

NameTypeRequiredDescription
pageintIndicates a page number to retrieve. Only positive number values are allowed. Default value is '1'
per_pageintIndicates a page size (number of items). If not specified, the value is '100' by default

Return Type

GetTimezoneListResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.list_timezones(
page=1,
per_page=100
)

print(result)

read_timezone

Returns information on a certain timezone.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/timezone/{timezoneId}

Parameters

NameTypeRequiredDescription
timezone_idintInternal identifier of a timezone

Return Type

GetTimezoneInfoResponse

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.read_timezone(timezone_id=9)

print(result)

list_countries

Returns all countries available for calling.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/country

Parameters

NameTypeRequiredDescription
login_allowedboolSpecifies whether the logging-in with the phone numbers of this country is enabled or not
signup_allowedboolIndicates whether a signup/billing is allowed for a country. If not specified all countries are returned (according to other specified filters if any)
number_sellingboolSpecifies if RingCentral sells phone numbers of this country
pageintIndicates a page number to retrieve. Only positive number values are accepted
per_pageintIndicates a page size (number of items)
free_softphone_lineboolSpecifies if free phone line for softphone is available for a country or not

Return Type

CountryListDictionaryModel

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.list_countries(
login_allowed=True,
signup_allowed=False,
number_selling=True,
page=1,
per_page=100,
free_softphone_line=False
)

print(result)

read_country

Returns information on a specific country.

  • HTTP Method: GET
  • Endpoint: /restapi/v1.0/dictionary/country/{countryId}

Parameters

NameTypeRequiredDescription
country_idintInternal identifier of a country

Return Type

CountryInfoDictionaryModel

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.regional_settings.read_country(country_id=0)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →