richard-better / pushbullet.py

A python client for http://pushbullet.com
MIT License
575 stars 110 forks source link

add support for getting sms messages #144

Open chesty opened 5 years ago

chesty commented 5 years ago

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.