Skip to content

config

DEFAULT_REGION = Region.US module-attribute

The default Nylas API region.

DEFAULT_SERVER_URL = REGION_CONFIG[DEFAULT_REGION]['nylasApiUrl'] module-attribute

The default Nylas API URL.

REGION_CONFIG = {Region.US: {'nylasApiUrl': 'https://api.us.nylas.com'}, Region.EU: {'nylasApiUrl': 'https://api.eu.nylas.com'}} module-attribute

The available preset configuration values for each Nylas API region.

Region

Bases: str, Enum

Enum representing the regions supported by the Nylas API

Source code in nylas/config.py
 4
 5
 6
 7
 8
 9
10
class Region(str, Enum):
    """
    Enum representing the regions supported by the Nylas API
    """

    US = "us"
    EU = "eu"