def start_session_resolve_user(
            self, user_id=None, remote_site=None, remote_ip=None):

        resp = self._create_xml_and_post(
            method_name='start_session',
            arg_dict=dict_ignore_nones(
                user_id=user_id,
                remote_site=remote_site,
                remote_ip=remote_ip
            ),
            url=self.ext_start_session_url
        )

        return self.parse_response(
            parse.start_session_resolve_user_result, resp
        )
Beispiel #2
0
    def make_core_request(self, api_call, **kwargs):

        args = {
            'user_id': self.username,
            'remote_ip': self.remote_ip,
            'remote_site': self.remote_site,
        }

        args.update(self.additional_elements)

        args.update(kwargs)

        return self._create_xml_and_post(
            method_name=api_call,
            arg_dict=dict_ignore_nones(**args),
            url=self.url
        )