summaryrefslogtreecommitdiff
path: root/Biz/Devalloc/get-examples.sh
blob: 2e0647bf5f460f28bcdca9f42d1ec11787636dd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env bash
if [ "$#" == "0" ]
then
    echo "usage: $(basename $0) <cookie>"
    echo "copy the cookie from the browser dev console"
    exit 1
fi
cookie="$1"
curl 'https://devalloc.io/analysis?user=github&repo=training-kit' \
    -X POST \
    -H 'Content-Type: application/x-www-form-urlencoded' \
    -H "Cookie: JWT-Cookie=$cookie" \
    --compressed --insecure