bimmer_connected.country_selector

Get the right url for the different countries.

class bimmer_connected.country_selector.Regions[source]

Regions of the world with separate servers.

CHINA = 1
NORTH_AMERICA = 0
REST_OF_WORLD = 2
bimmer_connected.country_selector.get_gcdm_oauth_authorization(region: bimmer_connected.country_selector.Regions) → str[source]

Get the url of the server for the region.

bimmer_connected.country_selector.get_gcdm_oauth_endpoint(region: bimmer_connected.country_selector.Regions) → str[source]

Get the url of the server for the region.

bimmer_connected.country_selector.get_region_from_name(name: str) → bimmer_connected.country_selector.Regions[source]

Get a region for a string.

This function is not case-sensitive.

bimmer_connected.country_selector.get_server_url(region: bimmer_connected.country_selector.Regions) → str[source]

Get the url of the server for the region.

bimmer_connected.country_selector.valid_regions() → List[str][source]

Get list of valid regions as strings.