Fuck twilio

This commit is contained in:
2026-01-05 23:14:11 +01:00
parent bc21181058
commit 32c67eb21a

View File

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