        return self.client.call('{{ method.method | caseLower }}', api_path, {
{% for parameter in method.parameters.header %}
            '{{ parameter.name }}': {{ parameter.name | escapeKeyword | caseSnake }},
{% endfor %}
{% for key, header in method.headers %}
            '{{ key }}': '{{ header }}',
{% endfor %}
        }, api_params{% if method.type == 'webAuth' %}, response_type='location'{% endif %})