projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Display Quote posts in the api features list to allow external clients to enable...
[akkoma]
/
scripts
/
create_metrics_app.sh
diff --git
a/scripts/create_metrics_app.sh
b/scripts/create_metrics_app.sh
index c2f32e50f139c6d4f5ada15eca5a7740ad56ac5e..c42f5dde8c37dd059efe1633ecd712a497a2ec7f 100755
(executable)
--- a/
scripts/create_metrics_app.sh
+++ b/
scripts/create_metrics_app.sh
@@
-17,7
+17,7
@@
RESP=$(curl \
client_id=$(echo $RESP | jq -r .client_id)
client_secret=$(echo $RESP | jq -r .client_secret)
client_id=$(echo $RESP | jq -r .client_id)
client_secret=$(echo $RESP | jq -r .client_secret)
-if [ -z "$client_id"]; then
+if [ -z "$client_id"
]; then
echo "Could not create an app"
echo "$RESP"
exit 1
echo "Could not create an app"
echo "$RESP"
exit 1
@@
-47,7
+47,7
@@
RESP=$(curl \
--data-urlencode 'redirect_uri=urn:ietf:wg:oauth:2.0:oob' \
--data-urlencode "scope=admin:metrics"
)
--data-urlencode 'redirect_uri=urn:ietf:wg:oauth:2.0:oob' \
--data-urlencode "scope=admin:metrics"
)
-
+echo $RESP
ACCESS_TOKEN="$(echo $RESP | jq -r .access_token)"
echo "Token is $ACCESS_TOKEN"
ACCESS_TOKEN="$(echo $RESP | jq -r .access_token)"
echo "Token is $ACCESS_TOKEN"