pushbullet.py icon indicating copy to clipboard operation
pushbullet.py copied to clipboard

add support for getting sms messages

Open chesty opened this issue 5 years ago • 0 comments

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.

chesty avatar May 01 '19 08:05 chesty