diff --git a/pica-wekan/policy.sh b/pica-wekan/policy.sh new file mode 100755 index 0000000000000000000000000000000000000000..a9b00f3d9ba16e8e916a73d80191b8a1d2b286f0 --- /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"''