def METHOD_NAME(self):
    self._HEADERS = {
        'Realm': 'dce.' + self._REALM,
        'x-api-key': self._API_KEY,
    }
    email, password = self._get_login_info()
    if email is None:
        self.raise_login_required()
    p_headers = self._HEADERS.copy()
    p_headers['Content-Type'] = 'application/json'
    self._HEADERS['Authorization'] = 'Bearer ' + self._download_json(
        self._API_BASE + 'login',
        None, 'Logging in', data=json.dumps({
            'id': email,
            'secret': password,
        }).encode(), headers=p_headers)['authorisationToken']