-
-
Save aaronbassett/106814d0ee478a602c67bbbd0754148e to your computer and use it in GitHub Desktop.
Nexmo SMS Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment