Skip to content

Commit

Permalink
fix: define if it exists in teh params
Browse files Browse the repository at this point in the history
  • Loading branch information
SaudElabdullah committed Jan 31, 2024
1 parent fdb608f commit c2c1565
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{% if async_client %}async {% endif %}def {{ operation_id }}(self, {{ params }} api_config_override : Optional[APIConfig] = None) -> {% if return_type.type is none or return_type.type.converted_type is none %}None{% else %}{{ return_type.type.converted_type}}{% endif %}:
api_config = api_config_override if api_config_override else self.config
x_interaction_id=self.set_interaction_id(x_interaction_id)
{% if 'client_id' in params %}
client_id= client_id or api_config.client_id
{% endif %}
{% if 'client_secret' in params %}
client_secret= client_secret or api_config.client_secret
{% endif %}

base_path = self.config.base_path
path = f'{{ path_name }}'
Expand Down

0 comments on commit c2c1565

Please sign in to comment.