Skip to content

Commit

Permalink
added post request with data sending
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmin3 committed Mar 28, 2024
1 parent acfb9b6 commit 0b0ed4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_users(self, limit: int = 50, pagination: bool = True, api_key: str = "")

return all_users

def execute_flow(self, hook: str, api_key: str = "", post: str = "", data={}):
def execute_flow(self, hook: str, api_key: str = "", post: str = "", data=None) -> None:
if not api_key:
raise ValueError('api_key is required')
headers = {"X-N8N-API-KEY": api_key, "Accept": "application/json"}
Expand Down

0 comments on commit 0b0ed4b

Please sign in to comment.