/ Published in: Bash
Improved blipsend miniapp
Requires curl, zenity and sed
Requires curl, zenity and sed
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash # simpliest blip client zenity edition aka blipsendz # requires: zenity, curl, sed # put your blip login details (login:password) in ~/.blipdata file # TODO: support for char's like: ) / etc... if [ -a ~/.blipdata ]; then curl -H'User-Agent: blipsend 0.1' -H'Accept: application/json' -H'X-Blip-api: 0.02' -u $(more ~/.blipdata) -F "update[body]=$(echo $(zenity --entry --text="New status") | sed 's/ /\ /g')" http://api.blip.pl/updates zenity --info --text="Your message was sent" else zenity --error --text="Missing login data\n Does ~/.blipdata exist?" fi