Skip to content

Commit fb59e10

Browse files
Automatically generates tokens
1 parent 4f5f4ad commit fb59e10

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

app.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from twilio.rest import Client
33
from test1 import send_message
44
import time
5+
from twilio.jwt.access_token import AccessToken
56
import findCounty as fc
67
from nearestCentersDictionary import nearest_centers
78
from makeMessage import formulate_message
@@ -13,9 +14,12 @@
1314
ssl._create_default_https_context = ssl._create_unverified_context
1415

1516

17+
auth_token = AccessToken('AC0d79e56293d4494c36eee4f48a59ff8e', 'SKeb5a25313bb48bd91b84eedbe6834520', 'bsamiAWrhwdHLCYpPNiy6Ch2t9WT1gAT', identity='PythonCovidBot')
18+
19+
1620
app = Flask(__name__)
1721
account_sid = 'AC0d79e56293d4494c36eee4f48a59ff8e'
18-
auth_token = 'e28b70572daa7f80fe2bccb3b7357432'
22+
#auth_token = 'e28b70572daa7f80fe2bccb3b7357432'
1923
client = Client(account_sid, auth_token)
2024
bot_number = "+14155238886"
2125

test1.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
from twilio.rest import Client
2+
from app import auth_token
3+
24

35
account_sid = 'AC0d79e56293d4494c36eee4f48a59ff8e'
4-
auth_token = 'e28b70572daa7f80fe2bccb3b7357432'
6+
#auth_token = 'e28b70572daa7f80fe2bccb3b7357432'
57
client = Client(account_sid, auth_token)
68

79

0 commit comments

Comments
 (0)