pushbullet.py
pushbullet.py copied to clipboard
add support for getting sms messages
from pushbullet import Pushbullet api_key = 'replace with your api key' encryption_key = 'replace with your encryption key' pb = Pushbullet(api_key, encryption_key) device = pb.get_device('replace with your device nickname') threads = pb.get_permanents(device) for thread in threads: messages = pb.get_permanent(device, thread['id']) print(messages)
I guess it's using an undocumented api feature and i haven't done extensive testing, for example I don't know if a cursor is ever sent. I've tested url parameters like limit= and modified_after= and they didn't appear to work.