summaryrefslogtreecommitdiff
path: root/dump.sh
diff options
context:
space:
mode:
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
+