From 4c038664810bb58cd4e315494e94c729618c5706 Mon Sep 17 00:00:00 2001 From: Christian Wolf Date: Thu, 8 Sep 2022 08:44:08 +0200 Subject: [PATCH] Add helpers for accessing the appstore Signed-off-by: Christian Wolf --- .helpers/appstore/.gitignore | 1 + .helpers/appstore/URL | 1 + .helpers/appstore/query-request.sh | 6 ++++++ 3 files changed, 8 insertions(+) create mode 100644 .helpers/appstore/.gitignore create mode 100644 .helpers/appstore/URL create mode 100755 .helpers/appstore/query-request.sh diff --git a/.helpers/appstore/.gitignore b/.helpers/appstore/.gitignore new file mode 100644 index 00000000..79bc29af --- /dev/null +++ b/.helpers/appstore/.gitignore @@ -0,0 +1 @@ +token.file diff --git a/.helpers/appstore/URL b/.helpers/appstore/URL new file mode 100644 index 00000000..a665233b --- /dev/null +++ b/.helpers/appstore/URL @@ -0,0 +1 @@ +https://nextcloudappstore.readthedocs.io/en/latest/restapi.html#specification diff --git a/.helpers/appstore/query-request.sh b/.helpers/appstore/query-request.sh new file mode 100755 index 00000000..726fb669 --- /dev/null +++ b/.helpers/appstore/query-request.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +dir=$(dirname "$0") +TOKEN=$(cat "$dir/token.file") + +curl -H "Authorization: Token $TOKEN" "$@"