richard-better / pushbullet.py

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

Push address does not work #86

Closed Timvdv closed 7 years ago

Timvdv commented 8 years ago

I tried pushing a address with the example code in the readme file

address = " 25 E 85th St, 10028 New York, NY"
push = pb.push_address("home", address)

This results in this error:

pushbullet.errors.PushError: {"error":{"code":"invalid_param","type":"invalid_request","message":"The param 'type' has an invalid value.","param":"type","cat":"\u003e:3"},"error_code":"invalid_param"}

the send note does work! So I'm sure the settings are right.

kovacsbalu commented 8 years ago

Hi @Timvdv, I ran a unit test with your address and works correctly. Tomorrow I will test it via real Pushbullet service.

kovacsbalu commented 8 years ago

Well, "address" and "list" types was removed in api v15. See change January 28, 2015: https://docs.pushbullet.com/#changelog Thanks for your report.

Timvdv commented 8 years ago

@kovacsbalu Do you know if there is a replacement for showing an address? I was hoping for some kind of map view within Pushbullet, but I guess I'd just have to push the address as a note :(

kovacsbalu commented 8 years ago

I really don't know. :( I will create a PR and show address and list type as deprecated.