Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _send_confirmation(self, confirmation: Confirmation) -> dict:
tag = Tag.ALLOW
params = self._create_confirmation_params(tag.value)
params['op'] = tag.value,
params['cid'] = confirmation.data_confid
params['ck'] = confirmation.data_key
headers = {'X-Requested-With': 'XMLHttpRequest'}
return self._session.get(self.CONF_URL + '/ajaxop', params=params, headers=headers).json()