Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,25 @@ def app1_response(img):
|
|
| 59 |
|
| 60 |
def app2_response(text):
|
| 61 |
|
| 62 |
-
resp = text +
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
|
| 64 |
return resp
|
| 65 |
|
|
|
|
| 59 |
|
| 60 |
def app2_response(text):
|
| 61 |
|
| 62 |
+
resp = text +
|
| 63 |
+
|
| 64 |
+
```
|
| 65 |
+
=======
|
| 66 |
+
from twilio.rest import Client
|
| 67 |
+
|
| 68 |
+
account_sid = 'ACc19799c83b997cdde06b0d6d2496aec3'
|
| 69 |
+
auth_token = 'XXXXX'
|
| 70 |
+
client = Client(account_sid, auth_token)
|
| 71 |
+
|
| 72 |
+
message = client.messages.create(
|
| 73 |
+
from_='+18447195622',
|
| 74 |
+
body='Bot messsage /TWil',
|
| 75 |
+
to='+18587331029'
|
| 76 |
+
)
|
| 77 |
+
|
| 78 |
+
print(message.sid)
|
| 79 |
+
|
| 80 |
+
```
|
| 81 |
|
| 82 |
return resp
|
| 83 |
|