def __init__(
            self,
            api_key: str,
            project_key: str = None,
            environment_key: str = None
        ):
        """
        Instantiate a new LaunchDarklyApi instance.

        :param api_key: API Access Key for LaunchDarkly.
        :param project_key: Key for project.
        :param environment_key: Environment in which to \
            pull state from.
        """
        self.api_key = api_key
        self.project_key = project_key
        self.environment_key = environment_key

        # get new LD client
        configuration = launchdarkly_api.Configuration()
        configuration.api_key['Authorization'] = api_key
        self.client = launchdarkly_api.ProjectsApi(
            launchdarkly_api.ApiClient(configuration))
        self.feature = launchdarkly_api.FeatureFlagsApi(
            launchdarkly_api.ApiClient(configuration))
def __init__ ( self , api_key : str , project_key : str = None , environment_key : str = None ) : self . api_key = api_key self . project_key = project_key self . environment_key = environment_key configuration = launchdarkly_api . Configuration ( ) configuration . api_key [ 'Authorization' ] = api_key self . client = launchdarkly_api . ProjectsApi ( launchdarkly_api . ApiClient ( configuration ) ) self . feature = launchdarkly_api . FeatureFlagsApi ( launchdarkly_api . ApiClient ( configuration ) )
Instantiate a new LaunchDarklyApi instance.

        :param api_key: API Access Key for LaunchDarkly.
        :param project_key: Key for project.
        :param environment_key: Environment in which to \
            pull state from.