Fuck twilio
This commit is contained in:
@@ -23,11 +23,7 @@ class SmsController:
|
||||
def send_sms(self):
|
||||
try:
|
||||
with ApiClient(self.config) as api:
|
||||
req = request.get_json()
|
||||
content = req["content"]
|
||||
payload = json.dumps({"content": content})
|
||||
print(payload)
|
||||
|
||||
payload = json.dumps({"content": "The game is over ! Go check the board"})
|
||||
api.default_headers["Authorization"] = f"Bearer {self._auth_data.get_token()}"
|
||||
sms_api = SmsApi(api)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user