Skip to content
Newer
Older
100755 18 lines (13 sloc) 477 Bytes
b86e07a @singpolyma Initial feedback.sh
authored
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
6756550 @singpolyma Fix tests
authored
9 BASEURL="http://pkgs.theveeb.com/" # XXX: Should this be an argument?
10
b86e07a @singpolyma Initial feedback.sh
authored
11 # Expects app-name -d 'k=v' -d 'k2-v2' NO URL ENCODING
12
13 TOKENS="`getTVETokens "$BASEURL"`"
14 APP="$1"
15 shift
16 REQ="`getTVEAuthRequest "$TOKENS" "https://theveeb.com/apps/$APP" "POST" -d 'item=feedback' "$@" | cut -d'?' -f2`"
17 post2stdout "https://theveeb.com/apps/$APP" "$REQ"
Something went wrong with that request. Please try again.