api auth hotfix
parent
bd8ec1fd61
commit
9cfa9074c5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue