Skip to content

Commit

Permalink
twilio does not automatically recognize its auth tokens in env vars, …
Browse files Browse the repository at this point in the history
…have to pass them to client call
  • Loading branch information
lperezmo authored Jul 13, 2024
1 parent cec57e4 commit 939a204
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion onsite_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@
#------------------------------------#
# Load environment variables
#------------------------------------#
ACCOUNT_SID = os.environ["ACCOUNT_SID"]
AUTH_TOKEN = os.environ["AUTH_TOKEN"]
SEC_PIN = os.environ["SECURITY_PIN"]

#------------------------------------#
# Twilio Client
#------------------------------------#
CLIENT = Client()
CLIENT = Client(ACCOUNT_SID, AUTH_TOKEN)

#------------------------------------#
# Initialize SQS client
Expand Down

0 comments on commit 939a204

Please sign in to comment.