From bcea04a4e765cf593d8a5e2d7633fb8e0d6146ef Mon Sep 17 00:00:00 2001 From: Guillaume Damiens <guillaume.damiens@etu.utc.fr> Date: Thu, 25 Apr 2019 00:12:37 +0200 Subject: [PATCH] =?UTF-8?q?Cr=C3=A9ation=20script=20suppresion=20boards?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pica-wekan/policy.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 pica-wekan/policy.sh diff --git a/pica-wekan/policy.sh b/pica-wekan/policy.sh new file mode 100755 index 00000000..a9b00f3d --- /dev/null +++ b/pica-wekan/policy.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +. ids.sh + +queryPica=$(curl -s https://wekan.test.picasoft.net/users/login -d 'username='"$username"'&password='"$password"'') + +token=$(echo $queryPica | jq .token) +expirationDate=$(echo $queryPica | jq .tokenExpires) + +echo $token + + +curl -X GET https://wekan.test.picasoft.net/api/boards \ + -H 'Accept: application/json' \ + -H 'Authorization: '"$token"'' -- GitLab