From 9cfa9074c57fe876ef15c85c7ea7f50331e00950 Mon Sep 17 00:00:00 2001 From: Dominika Liberda Date: Thu, 8 Oct 2020 00:09:36 +0200 Subject: [PATCH] api auth hotfix --- webroot/api/collect.shs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webroot/api/collect.shs b/webroot/api/collect.shs index d7bb150..53271b1 100755 --- a/webroot/api/collect.shs +++ b/webroot/api/collect.shs @@ -11,7 +11,7 @@ if [[ $(echo $data | jq .status) == "403" ]]; then echo $data | jq "{status: .status, error: .error}" else uuid=$(echo $data | jq -r ".sessionUuid") - data=$(curl -X POST -H "Authorization: Bearer $(cat authToken)" "https://api-inmobile-pl.easypack24.net/v1/collect/compartment/open/$uuid") + data=$(curl -X POST -H "$(get_auth_string)" "https://api-inmobile-pl.easypack24.net/v1/collect/compartment/open/$uuid") if [[ $(echo $data | jq ".compartment") != "" ]]; then echo $data else