def get_siem_next_token(response):
        """Extracting SIEM token from response headers."""
        has_more_logs = False
        if 'mc-siem-token' in response.headers:
            has_more_logs = True
            SIEMResponseHelper.next_token = response.headers['mc-siem-token']
        else:
            SIEMResponseHelper.next_token = ''
        return has_more_logs, SIEMResponseHelper.next_token
Extracting SIEM token from response headers.
Solutions/MimecastSEG/Data Connectors/Helpers/siem_response_helper.py