Created
December 27, 2015 00:34
-
-
Save tomfa/c1b7edf2f38312f58c5b to your computer and use it in GitHub Desktop.
SMS sending using pushbullet
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
''' | |
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