Red5d / pushbullet-bash

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

Pushing 'list' with items that contain spaces #2

Closed miwie closed 9 years ago

miwie commented 11 years ago

Cannot push a 'list' with items that contain spaces, no matter how I try to quote them.

E.g. pushbullet push device title "first item" "second item" results in a notification with 4 items (first,item,second, item).

miwie commented 11 years ago

Looks like the POST data should be sent as "Content-Type: application/json" and be formatted like {"type":"list","device_id":"59117","title":"title","items":["aa bb","cc"]} The actual code POSTs data only as "application/x-www-form-urlencoded". Should be probably changed generally.

Red5d commented 11 years ago

Ok, thanks. I'll fix that.

fbartels commented 9 years ago

This should be obsolete with #24 as well.