summaryrefslogtreecommitdiff
path: root/dump.sh
diff options
context:
space:
mode:
authorkaa <kaa@disroot.org>2023-11-19 00:56:10 -0800
committerkaa <kaa@disroot.org>2023-11-19 00:56:10 -0800
commitc11b26e1f75b643997787b76f5181731058a28f9 (patch)
treed186d74acbe892e17b323a884e49868ed25532fd /dump.sh
parent5a30f14c78f7f82c41680b983bea4ce2fa938226 (diff)
Basis for directory listing and file download.
Diffstat (limited to 'dump.sh')
-rwxr-xr-xdump.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/dump.sh b/dump.sh
new file mode 100755
index 0000000..21ae5da
--- /dev/null
+++ b/dump.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+curl -s -X GET "https://sdccd.instructure.com/api/v1/users/self/files" -H "Authorization: Bearer $CANKEY" | tr '}' '\n' | sed -e 's/{//g' -e's/\[//g' -e 's/\]//g' -e 's/^,//g' > dump
+