/ Published in: Bash
blip (http://blip.pl) is a polish twitter clone this little script adds new message using your blip account requires: bash, curl and sed (99% of you have it already :)) should work on cygwin (should)
at this stage doesn't support characters wchich need \ prefix (except ' ' [space])
Expand |
Embed | Plain Text
#!/bin/bash # simpliest blip client aka blipsend - a very simple bash script by Ćukasz Korecki, http://coffeesounds.com # put your blip login details (login:password) in ~/.blipdata file # usage: # 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 $@ | sed 's/ /\ /g')" http://api.blip.pl/updates echo "Your message: $@, was sent" else echo "Missing ~./blipdata file! Put your credentials in login:password format in this file!!!!11" fi
You need to login to post a comment.
