Skip to content

Commit

Permalink
fix: Refactored from / to data to utilise environment variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayce Dugan committed Jan 24, 2021
1 parent 3ca626a commit 1938510
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/classes/Twilio.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ class Twilio:
def __init__(self):
self.sid = os.environ['TWILIO_ACCOUNT_SID']
self.auth_token = os.environ['TWILIO_AUTH_TOKEN']
self.from_ = os.environ['TWILIO_FROM']
self.to = os.environ['TWILIO_TO']
self.client = Client(self.sid, self.auth_token)
self.messages = self.client.messages
self.send = self.create_message
self.from_ = "+16786471318"
self.to = "+61411485436"
self.characterLimit = 1600

def create_message(self, payload):
Expand Down

0 comments on commit 1938510

Please sign in to comment.