Skip to content

Instantly share code, notes, and snippets.

@aaronbassett
Created October 5, 2019 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaronbassett/106814d0ee478a602c67bbbd0754148e to your computer and use it in GitHub Desktop.
Save aaronbassett/106814d0ee478a602c67bbbd0754148e to your computer and use it in GitHub Desktop.
Nexmo SMS Example
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