Skip to content

Commit

Permalink
Merge pull request #609 from praekeltfoundation/capi-backend-changes
Browse files Browse the repository at this point in the history
Add some debug info
  • Loading branch information
erikh360 committed Jul 22, 2024
2 parents baff66e + 9cd5e95 commit eeed75e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ndoh_hub/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ def send_whatsapp_template_message(

response_data = response.json()

print(">>> send_whatsapp_template_message")
print(f"save_status_record: {save_status_record}")
print(response_data)

status_id = None
prefered_chanel = "WhatsApp"
if "messages" not in response_data:
Expand All @@ -273,4 +277,6 @@ def send_whatsapp_template_message(
message_id=message_id
).id

print(f"status_id: {status_id}")

return prefered_chanel, status_id

0 comments on commit eeed75e

Please sign in to comment.