Skip to content
This repository has been archived by the owner on Jun 12, 2023. It is now read-only.

Commit

Permalink
feature(#7): fixed to initialize twilio
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed May 30, 2023
1 parent b3cdcd7 commit 4dace36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/router/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def construct_blueprint_api(generator):
# Service
feedback_service = FeedbackService()
command_service = CommandService()
twilio_service = TwilioService()

@generator.response(
status_code=200, schema={"message": "message", "result": "test_result"}
Expand Down Expand Up @@ -276,6 +275,7 @@ def send_sms():
# parsing feedback payload
sms_model = assembler.to_sms_model(data["data"])
# send sms via twilio
twilio_service = TwilioService()
twilio_resp = twilio_service.send_sms(sms_model)
except Exception as e:
return assembler.to_response(400, "Failed to send sms", "")
Expand Down

0 comments on commit 4dace36

Please sign in to comment.