Skip to content

Instantly share code, notes, and snippets.

@tomfa
Created December 27, 2015 00:34
Show Gist options
  • Save tomfa/c1b7edf2f38312f58c5b to your computer and use it in GitHub Desktop.
Save tomfa/c1b7edf2f38312f58c5b to your computer and use it in GitHub Desktop.
SMS sending using pushbullet
'''
1) Sign up for pushbullet @ pusbullet.com
2) Install the pushbullet app on your phone
3) Find your API key here: https://www.pushbullet.com/#settings/account
4) Install pushbullet with 'pip install pushbullet.py'
5) Replace 'key' value below
'''
from pushbullet import Pushbullet
key = 'MyLongAndSillyCoolAPIKey'
pb = Pushbullet(key)
phone = pb.devices[0] # Depending on your devices, might be device[1], device[2] or other.
pb.push(phone, "+4712345678", "Test message")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment