Your Ad Here

Posted By

lukaszkorecki on 02/11/08


Tagged

curl Shell Bash unix web20 linux


Versions (?)

blipsend


 / 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])

  1. #!/bin/bash
  2. # simpliest blip client aka blipsend - a very simple bash script by Ɓukasz Korecki, http://coffeesounds.com
  3. # put your blip login details (login:password) in ~/.blipdata file
  4. # usage:
  5. # TODO: support for char's like: ) / etc...
  6. if [ -a ~/.blipdata ]; then
  7. 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
  8. echo "Your message: $@, was sent"
  9. else
  10. echo "Missing ~./blipdata file! Put your credentials in login:password format in this file!!!!11"
  11. fi

Report this snippet  

You need to login to post a comment.