api auth hotfix

master
Dominika Liberda 2020-10-08 00:09:36 +02:00
parent bd8ec1fd61
commit 9cfa9074c5
1 changed files with 1 additions and 1 deletions

View File

@ -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