SOF,
I saw a thread on reddit about using Python with Pushbullet and thought it would be handy so I'm trying to use Python to send Notifications via PushBullet however I'm running into several problems
1) I'm unable to find out what device each ID is related to...
2) I'm unable to push anything to any device due to the error AttributeError: 'NoneType' object has no attribute 'push_note'
PushBullet.py = https://pypi.python.org/pypi/pushbullet.py/0.4.1
Project Github: https://github.com/randomchars/pushbullet.py
Running the folllowing code:
from pushbullet import PushBullet
pb = PushBullet("ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890")
print pb.devices
phone = pb.get("1234567890")
print phone
push = phone.push_note("This is the title", "This is the body")
print(push.status_code)
Returns:
[Device('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890', 1234567890), Device('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890', 0000000000), Device('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890', 1111111111), Device('ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890', 2222222222)]
None
Traceback (most recent call last):
File "C:\Users\Admin\Desktop\PushBullet_Test.py", line 9, in <module>
push = phone.push_note("This is the title", "This is the body")
AttributeError: 'NoneType' object has no attribute 'push_note'
Please note that their documentation has a syntax error in the push_note example, it shouldn't have a full stop / period before the end bracket.
I can't find any fix anywhere for this problem and can't even find anyone with the problem :(