api-python-sdk/examples/send_sms.py
2026-11-28 15:28:00 +02:00

13 lines
365 B
Python

"""Send one SMS."""
import os
import sys
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "..", "src")) # run from the repository without installing
from interweb_ao import Client, ApiError
# Key from INTERWEB_API_KEY.
client = Client()
sms = client.sms.messages_create({"number": "+244923123456", "text": "Your order is ready."})
print(sms["data"])