Red5d / pushbullet-bash

Bash interface to the PushBullet API
236 stars 41 forks source link

Fix list pushing #24

Closed glutanimate closed 9 years ago

glutanimate commented 9 years ago

Hi,

I've noticed that list pushing hasn't been working for a while now. Looking for a solution I found a comment by a pushbullet dev that alluded to the fact that there might a bug in parsing URL-encoded list items.

This commit replaces the URL-encoded post body by a JSON body in the curl request for pushing lists. pushbullet-bash should be able to handle lists again now.

I don't know if the awk/sed-based conversion to JSON is 100% robust, but it hasn't given me any issues so far.