richard-better / pushbullet.py

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

The listener_example does not work #37

Closed AugustoEst closed 8 years ago

AugustoEst commented 9 years ago

The following listener example does not work:

s = Listener(API_KEY,
                 device_id=DEVICE_ID,
                 on_link=pushed_link,
                 http_proxy_host=HTTP_PROXY_HOST,
                 http_proxy_port=HTTP_PROXY_PORT)

TypeError: init() got an unexpected keyword argument 'on_link'

Because:

(source code)

def __init__(self, account,
                 on_push=None,
                 http_proxy_host=None,
                 http_proxy_port=None):
r-darwish commented 8 years ago

Solved in 87051ae5aa1434ded2ed05646fa56576c31f32a2