Skip to content
Newer
Older
100755 17 lines (12 sloc) 430 Bytes
24575e1 @singpolyma First rate.sh
authored Oct 21, 2009
1 #!/bin/sh
2
3 if [ -r "`dirname "$0"`"/tve-setup.sh ]; then
4 . "`dirname "$0"`"/tve-setup.sh
5 else
6 . "$TVEROOT"/usr/lib/tve-setup.sh
7 fi
8
9 BASEURL="http://pkgs.theveeb.com/" # XXX: Should this be an argument?
10
11 TOKENS="`getTVETokens "$BASEURL"`"
12 REQ="`getTVEAuthRequest "$TOKENS" "https://theveeb.com/apps/$1" "PUT" -d "rating=$2"`"
13
14 # Use cURL, since wget can't do PUT
15 # Send parameters in query string for OAuth
152509a @psycotica0 Have the cURL in Rate Use -s.
psycotica0 authored Oct 21, 2009
16 curl -s -X PUT "$REQ"
Something went wrong with that request. Please try again.