import os
import nexmo
client = nexmo.Client(
key=os.getenv("NEXMO_KEY"),
secret=os.getenv("NEXMO_SECRET"),
)
client.send_message(
{
"from": "Python",
"to": os.getenv("MY_NUMBER"),
"text": "Hello world",
}
)
view raw sms.py hosted with ❤ by GitHub