(self, username, api_key, tenant_id=None)
return self.session_for_username_password(username, api_key, tenant_id)
Create or return a :obj:`Session`.

        :param unicode username: A user name.
        :param unicode api_key: An API key that should match the username.

        :return: a session for the given user.
        :rtype: Session
Create or return a :obj:`Session`.
Create or return a : obj : Session .
def session_for_api_key(self, username, api_key, tenant_id=None):
        """
        Create or return a :obj:`Session`.

        :param unicode username: A user name.
        :param unicode api_key: An API key that should match the username.

        :return: a session for the given user.
        :rtype: Session
        """
        # One day, API keys will be different from passwords, but not today.
        return self.session_for_username_password(username, api_key, tenant_id)
def session_for_api_key ( self , username , api_key , tenant_id = None ) : # One day, API keys will be different from passwords, but not today. return self . session_for_username_password ( username , api_key , tenant_id )